summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-31 12:01:24 +0200
committerKarolin Seeger <kseeger@samba.org>2008-04-11 08:57:23 +0200
commit7d70d04ae2ee1bab01d127260fd283dcbcaddfa2 (patch)
tree790560fde0eebc688c0a1ced60c4f121f9884eb1
parentfabfba8645a1c38470265dc296f0253e76432443 (diff)
downloadsamba-7d70d04ae2ee1bab01d127260fd283dcbcaddfa2.tar.gz
samba-7d70d04ae2ee1bab01d127260fd283dcbcaddfa2.tar.xz
samba-7d70d04ae2ee1bab01d127260fd283dcbcaddfa2.zip
libwbclient: use WBC_ERROR_IS_OK() in BAIL_ON_WBC_ERROR() macro
metze (cherry picked from commit de2e8d5db93d32e5ebf04a2018a08f766eb9a233)
-rw-r--r--source/nsswitch/libwbclient/wbc_err_internal.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/nsswitch/libwbclient/wbc_err_internal.h b/source/nsswitch/libwbclient/wbc_err_internal.h
index ea501cba31a..83364b8cd97 100644
--- a/source/nsswitch/libwbclient/wbc_err_internal.h
+++ b/source/nsswitch/libwbclient/wbc_err_internal.h
@@ -24,10 +24,11 @@
/* Private macros */
-#define BAIL_ON_WBC_ERROR(x) \
- do { \
- if ((x) != WBC_ERR_SUCCESS) \
- goto done; \
+#define BAIL_ON_WBC_ERROR(x) \
+ do { \
+ if (!WBC_ERROR_IS_OK(x)) { \
+ goto done; \
+ } \
} while(0);
#define BAIL_ON_PTR_ERROR(x, status) \