From 717533483b41ef975953f58e0c6be04828a3d467 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Fri, 24 Aug 2001 20:32:01 +0000 Subject: get rid of compiler warnings (This used to be commit 0768991d04ea03e774ca8662c9cae5e1951b88e0) --- source3/utils/smbpasswd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 27a00e2e2b..5cfe1152c8 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -349,9 +349,9 @@ static int join_domain_byuser(char *domain, char *remote_machine, machine_pwd = (char *)upw.buffer; plen = upw.uni_str_len * 2; - generate_random_buffer(machine_pwd, plen, True); + generate_random_buffer((unsigned char *)machine_pwd, plen, True); - encode_pw_buffer(pwbuf, machine_pwd, plen, False); + encode_pw_buffer((char *)pwbuf, machine_pwd, plen, False); nt_owf_genW(&upw, ntpw); } @@ -361,7 +361,7 @@ static int join_domain_byuser(char *domain, char *remote_machine, ZERO_STRUCT(ctr); ZERO_STRUCT(p24); - init_sam_user_info24(&p24, pwbuf,24); + init_sam_user_info24(&p24, (char *)pwbuf,24); ctr.switch_value = 24; ctr.info.id24 = &p24; -- cgit