summaryrefslogtreecommitdiff
path: root/source4/torture/winbind
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-10-29 11:39:39 +0100
committerJeremy Allison <jra@samba.org>2014-11-25 07:25:46 +0100
commit5e28f4dadd3366eef574ae4be681bf7e5f6396d6 (patch)
treec22acf6b3404761675052e81a26a954ac7695097 /source4/torture/winbind
parentd6ce6189d20d0615cd861e1cb116e18a085dfc6b (diff)
downloadsamba-5e28f4dadd3366eef574ae4be681bf7e5f6396d6.tar.gz
s4:torture/winbind: remove unused variables in struct_based.c
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/torture/winbind')
-rw-r--r--source4/torture/winbind/struct_based.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/winbind/struct_based.c b/source4/torture/winbind/struct_based.c
index ef27b057a28..2bd744350c1 100644
--- a/source4/torture/winbind/struct_based.c
+++ b/source4/torture/winbind/struct_based.c
@@ -52,9 +52,10 @@
} \
} while(0)
+#undef _STRUCT_NOOP
+#define _STRUCT_NOOP do {} while(0);
#define DO_STRUCT_REQ_REP(op,req,rep) do { \
- bool __noop = false; \
- DO_STRUCT_REQ_REP_EXT(op,req,rep,NSS_STATUS_SUCCESS,true,__noop=true,NULL); \
+ DO_STRUCT_REQ_REP_EXT(op,req,rep,NSS_STATUS_SUCCESS,true, _STRUCT_NOOP, NULL); \
} while (0)
static bool torture_winbind_struct_interface_version(struct torture_context *torture)
@@ -853,9 +854,8 @@ static bool torture_winbind_struct_getpwent(struct torture_context *torture)
ZERO_STRUCT(rep);
req.data.num_entries = 1;
if (torture_setting_bool(torture, "samba3", false)) {
- bool __noop = false;
DO_STRUCT_REQ_REP_EXT(WINBINDD_GETPWENT, &req, &rep,
- NSS_STATUS_SUCCESS, false, __noop=true,
+ NSS_STATUS_SUCCESS, false, _STRUCT_NOOP,
NULL);
} else {
DO_STRUCT_REQ_REP(WINBINDD_GETPWENT, &req, &rep);