From: Joseph Sutton Date: Wed, 9 Aug 2023 04:50:44 +0000 (+1200) Subject: auth: Remove unnecessary casts X-Git-Tag: tevent-0.16.0~1039 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=329bfe47d9e59323ef5ec0fae014939a5ae5f440;p=thirdparty%2Fsamba.git auth: Remove unnecessary casts Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/auth/credentials/credentials_ntlm.c b/auth/credentials/credentials_ntlm.c index f30abc74fb0..a018be14c56 100644 --- a/auth/credentials/credentials_ntlm.c +++ b/auth/credentials/credentials_ntlm.c @@ -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);