From 6e3af45afe237790f1d7cd94ab2b22e1ca772157 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 21 Oct 1998 16:58:34 +0000 Subject: Fixed mainly signed/unsigned issues found by SGI cc in -fullwarn mode. smbd/chgpasswd.c: Fixed (my) stupid bug where I was returning stack based variables. Doh ! smbd/trans2.c: Allows SETFILEINFO as well as QFILEINFO on directory handles. Jeremy. (This used to be commit 0b44d27d0b5cc3948a6c2d78370ccddf1a84cd80) --- source3/rpcclient/cmd_netlogon.c | 2 ++ source3/rpcclient/cmd_samr.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/rpcclient') diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c index d5ca2b2b1d..8e65e9a7b5 100644 --- a/source3/rpcclient/cmd_netlogon.c +++ b/source3/rpcclient/cmd_netlogon.c @@ -51,11 +51,13 @@ void cmd_netlogon_login_test(struct client_info *info) char *nt_password; unsigned char trust_passwd[16]; +#if 0 /* machine account passwords */ pstring new_mach_pwd; /* initialisation */ new_mach_pwd[0] = 0; +#endif if (!next_token(NULL, nt_user_name, NULL, sizeof(nt_user_name))) { diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index fa4c631899..f14c84d6b9 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -99,8 +99,8 @@ void cmd_sam_ntchange_pwd(struct client_info *info) /* establish a connection. */ res = res ? do_samr_chgpasswd_user(smb_cli, srv_name, smb_cli->user_name, - nt_newpass, (char*)nt_hshhash, - lm_newpass, (char*)lm_hshhash) : False; + nt_newpass, nt_hshhash, + lm_newpass, lm_hshhash) : False; /* close the session */ cli_nt_session_close(smb_cli); -- cgit