]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
auth: Remove unnecessary casts
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 9 Aug 2023 04:50:44 +0000 (16:50 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 14 Aug 2023 04:57:34 +0000 (04:57 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/credentials/credentials_ntlm.c

index f30abc74fb0d9d3b88b76cfb38668b29e78bf0f0..a018be14c56b2377013573e1d330eabe7191ceb7 100644 (file)
@@ -374,7 +374,7 @@ _PUBLIC_ bool cli_credentials_set_utf16_password(struct cli_credentials *cred,
                                           CH_UTF16MUNGED, CH_UTF8,
                                           password_utf16->data,
                                           password_utf16->length,
-                                          (void *)&password_talloc,
+                                          &password_talloc,
                                           &password_len);
                if (!ok) {
                        TALLOC_FREE(nt_hash);
@@ -424,7 +424,7 @@ _PUBLIC_ bool cli_credentials_set_old_utf16_password(struct cli_credentials *cre
                                   CH_UTF16MUNGED, CH_UTF8,
                                   password_utf16->data,
                                   password_utf16->length,
-                                  (void *)&password_talloc,
+                                  &password_talloc,
                                   &password_len);
        if (!ok) {
                TALLOC_FREE(nt_hash);