From 7d70d04ae2ee1bab01d127260fd283dcbcaddfa2 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 (cherry picked from commit de2e8d5db93d32e5ebf04a2018a08f766eb9a233) --- source/nsswitch/libwbclient/wbc_err_internal.h | 9 +++++---- 1 file 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) \ -- cgit