summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2002-11-18 20:41:41 +0000
committerJim McDonough <jmcd@samba.org>2002-11-18 20:41:41 +0000
commitc73d1fc46e3c948ab7da416c61be4947034029f2 (patch)
tree2ad1d6ec7824b2a386497088f31cabbe54843c02
parent3bea5acd2eabad7c9c71ce65c25889df87ae69f9 (diff)
downloadsamba-c73d1fc46e3c948ab7da416c61be4947034029f2.tar.gz
samba-c73d1fc46e3c948ab7da416c61be4947034029f2.tar.bz2
samba-c73d1fc46e3c948ab7da416c61be4947034029f2.zip
Revert changes to ADS_ERR_OK() as in head. Broke some compilers.
(This used to be commit a3ca6d5a191ee9d3c7022ec2dfcaf41533ee1244)
-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 */