]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture: Remove some pointless local variables
authorVolker Lendecke <vl@samba.org>
Tue, 28 May 2024 12:52:25 +0000 (14:52 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 4 Jun 2024 07:11:35 +0000 (07:11 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/torture/locktest2.c

index 7586bbde44d51bac3fcf142dca7c29fc44573e34..cb01648aa587fb0e2209582b823814c051139e20 100644 (file)
@@ -179,10 +179,6 @@ static struct cli_state *connect_one(char *share)
        fstring myname;
        static int count;
        NTSTATUS nt_status;
-       bool use_kerberos = false;
-       bool fallback_after_kerberos = false;
-       bool use_ccache = false;
-       bool pw_nt_hash = false;
        struct cli_credentials *creds = NULL;
 
        fstrcpy(server,share+2);
@@ -208,10 +204,10 @@ static struct cli_state *connect_one(char *share)
                                       lp_workgroup(),
                                       NULL, /* realm (use default) */
                                       password,
-                                      use_kerberos,
-                                      fallback_after_kerberos,
-                                      use_ccache,
-                                      pw_nt_hash);
+                                      false,  /* use_kerberos */
+                                      false,  /* fallback_after_kerberos */
+                                      false,  /* use_ccache */
+                                      false); /* pw_nt_hash */
        if (creds == NULL) {
                DEBUG(0, ("cli_session_creds_init failed\n"));
                return NULL;