s4:torture/winbind: remove unused variables in struct_based.c
authorStefan Metzmacher <metze@samba.org>
Wed, 29 Oct 2014 10:39:39 +0000 (11:39 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 25 Nov 2014 06:25:46 +0000 (07:25 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/winbind/struct_based.c

index ef27b057a28407b8e16b1ad0c12fb4ee6fe7109b..2bd744350c17346d4a7e45a114275ad0518957ad 100644 (file)
        } \
 } 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);