From b6737afbc7b7f4cbfe068510fd82ec96241b5a2b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 31 Mar 2008 12:01:24 +0200 Subject: libwbclient: use WBC_ERROR_IS_OK() in BAIL_ON_WBC_ERROR() macro metze (This used to be commit de2e8d5db93d32e5ebf04a2018a08f766eb9a233) --- source3/nsswitch/libwbclient/wbc_err_internal.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source3/nsswitch/libwbclient') 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) \ -- cgit