From: Andrew Bartlett Date: Tue, 25 Jun 2002 07:58:29 +0000 (+0000) Subject: Kill off unnecessary cast. X-Git-Tag: samba-3.0.0alpha18~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=658e853bc6914113dcd4f67d7a1d2761372b562d;p=thirdparty%2Fsamba.git Kill off unnecessary cast. --- diff --git a/source/libsmb/trust_passwd.c b/source/libsmb/trust_passwd.c index 51ffa1dd95a..fd98e8dca9a 100644 --- a/source/libsmb/trust_passwd.c +++ b/source/libsmb/trust_passwd.c @@ -71,7 +71,7 @@ NTSTATUS trust_pw_change_and_store_it(struct cli_state *cli, TALLOC_CTX *mem_ctx str = generate_random_str(DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH); new_trust_passwd = talloc_strdup(mem_ctx, str); - E_md4hash((uchar *)new_trust_passwd, new_trust_passwd_hash); + E_md4hash(new_trust_passwd, new_trust_passwd_hash); nt_status = just_change_the_password(cli, mem_ctx, orig_trust_passwd_hash, new_trust_passwd_hash); @@ -96,7 +96,8 @@ NTSTATUS trust_pw_change_and_store_it(struct cli_state *cli, TALLOC_CTX *mem_ctx already setup the connection to the NETLOGON pipe **********************************************************/ -NTSTATUS trust_pw_find_change_and_store_it(struct cli_state *cli, TALLOC_CTX *mem_ctx, char *domain) +NTSTATUS trust_pw_find_change_and_store_it(struct cli_state *cli, TALLOC_CTX *mem_ctx, + char *domain) { unsigned char old_trust_passwd_hash[16]; char *up_domain;