summaryrefslogtreecommitdiff
path: root/source3/libsmb/trust_passwd.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-06-25 07:58:29 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-06-25 07:58:29 +0000
commit69081dc14b4d29d25f1f0448b8a70da5d856d5e8 (patch)
treeefee84ef76d3297c7584bd896c1a22c2dc111d81 /source3/libsmb/trust_passwd.c
parent0327428f27b453e5b2c1ee2751ab87d7716144d7 (diff)
downloadsamba-69081dc14b4d29d25f1f0448b8a70da5d856d5e8.tar.gz
samba-69081dc14b4d29d25f1f0448b8a70da5d856d5e8.tar.bz2
samba-69081dc14b4d29d25f1f0448b8a70da5d856d5e8.zip
Kill off unnecessary cast.
(This used to be commit 658e853bc6914113dcd4f67d7a1d2761372b562d)
Diffstat (limited to 'source3/libsmb/trust_passwd.c')
-rw-r--r--source3/libsmb/trust_passwd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/trust_passwd.c b/source3/libsmb/trust_passwd.c
index 51ffa1dd95..fd98e8dca9 100644
--- a/source3/libsmb/trust_passwd.c
+++ b/source3/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;