summaryrefslogtreecommitdiff
path: root/source3/include/ads.h
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2002-11-18 20:40:44 +0000
committerJim McDonough <jmcd@samba.org>2002-11-18 20:40:44 +0000
commite151b54dce371111b76b6cb2d0814b2a27826e00 (patch)
treeaee24b313802bb757c8975c960a8da0478ef08c0 /source3/include/ads.h
parent711ad374ce23f36ab7945fda1283d49aca8afa8a (diff)
downloadsamba-e151b54dce371111b76b6cb2d0814b2a27826e00.tar.gz
samba-e151b54dce371111b76b6cb2d0814b2a27826e00.tar.bz2
samba-e151b54dce371111b76b6cb2d0814b2a27826e00.zip
Revert ADS_ERR_OK change. Some compilers didn't like it.
The problem is that ADS_ERR_OK() run on a function that returns an ADS_STATUS causes the function to be run mulitple times...so you have to return a status, then check it with the macro. (This used to be commit c03d6198f28ab37ba0c3224bd50779357270486d)
Diffstat (limited to 'source3/include/ads.h')
-rw-r--r--source3/include/ads.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/ads.h b/source3/include/ads.h
index c8801789ae..7f23e6506b 100644
--- a/source3/include/ads.h
+++ b/source3/include/ads.h
@@ -67,7 +67,7 @@ typedef void **ADS_MODLIST;
#define ADS_ERROR_GSS(rc, minor) ads_build_error(ADS_ERROR_GSS, rc, minor)
#define ADS_ERROR_NT(rc) ads_build_nt_error(ADS_ERROR_NT,rc)
-#define ADS_ERR_OK(status) ({ADS_STATUS errokstat = status;(errokstat.error_type == ADS_ERROR_NT) ? NT_STATUS_IS_OK(errokstat.err.nt_status):(errokstat.err.rc == 0);})
+#define ADS_ERR_OK(status) ((status.error_type == ADS_ERROR_NT) ? NT_STATUS_IS_OK(status.err.nt_status):(status.err.rc == 0))
#define ADS_SUCCESS ADS_ERROR(0)
/* time between reconnect attempts */