summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-31 12:01:24 +0200
committerStefan Metzmacher <metze@samba.org>2008-04-01 18:30:10 +0200
commitb6737afbc7b7f4cbfe068510fd82ec96241b5a2b (patch)
treee810eb9bfed568b83674b37f5e54c36d9dec7707
parent8d7257453cddca5cb4c35f60814953a9c2ebc9be (diff)
downloadsamba-b6737afbc7b7f4cbfe068510fd82ec96241b5a2b.tar.gz
samba-b6737afbc7b7f4cbfe068510fd82ec96241b5a2b.tar.bz2
samba-b6737afbc7b7f4cbfe068510fd82ec96241b5a2b.zip
libwbclient: use WBC_ERROR_IS_OK() in BAIL_ON_WBC_ERROR() macro
metze (This used to be commit de2e8d5db93d32e5ebf04a2018a08f766eb9a233)
-rw-r--r--source3/nsswitch/libwbclient/wbc_err_internal.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/nsswitch/libwbclient/wbc_err_internal.h b/source3/nsswitch/libwbclient/wbc_err_internal.h
index ea501cba31..83364b8cd9 100644
--- a/source3/nsswitch/libwbclient/wbc_err_internal.h
+++ b/source3/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) \