]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libwbclient: use WBC_ERROR_IS_OK() in BAIL_ON_WBC_ERROR() macro
authorStefan Metzmacher <metze@samba.org>
Mon, 31 Mar 2008 10:01:24 +0000 (12:01 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 1 Apr 2008 16:30:10 +0000 (18:30 +0200)
metze

source/nsswitch/libwbclient/wbc_err_internal.h

index ea501cba31a29ed8f456a4b0cb225ef09c89ea93..83364b8cd9713df1712271be411bab0399a2bc3a 100644 (file)
 
 /* 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)                    \