diff options
author | Jeremy Allison <jra@samba.org> | 1998-10-21 16:58:34 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-10-21 16:58:34 +0000 |
commit | 0b44d27d0b5cc3948a6c2d78370ccddf1a84cd80 (patch) | |
tree | df5af993c3cc497f3018f0e50f03c2bd092f68a0 /source/rpc_client | |
parent | 500e5536bee8ea8e58d5991bfab2cff923068926 (diff) | |
download | samba-0b44d27d0b5cc3948a6c2d78370ccddf1a84cd80.tar.gz |
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.
Diffstat (limited to 'source/rpc_client')
-rw-r--r-- | source/rpc_client/cli_pipe.c | 4 | ||||
-rw-r--r-- | source/rpc_client/cli_samr.c | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c index e412bad2a78..15025ceef31 100644 --- a/source/rpc_client/cli_pipe.c +++ b/source/rpc_client/cli_pipe.c @@ -104,7 +104,7 @@ static BOOL rpc_read(struct cli_state *cli, DEBUG(5,("rpc_read: offset end: 0x%x. data left to read:0x%x\n", rdata->data->offset.end, data_to_read)); - return rdata->data->data != NULL; + return True; } /**************************************************************************** @@ -229,7 +229,6 @@ static BOOL rpc_api_pipe(struct cli_state *cli, uint16 cmd, prs_struct *rparam, prs_struct *rdata) { int len; - int alloc_hint = 0; uint16 setup[2]; /* only need 2 uint16 setup parameters */ uint32 err; @@ -303,7 +302,6 @@ static BOOL rpc_api_pipe(struct cli_state *cli, uint16 cmd, { RPC_HDR_RESP rhdr_resp; smb_io_rpc_hdr_resp("rpc_hdr_resp", &rhdr_resp, rdata, 0); - alloc_hint = rhdr_resp.alloc_hint; } DEBUG(5,("rpc_api_pipe: len left: %d smbtrans read: %d\n", diff --git a/source/rpc_client/cli_samr.c b/source/rpc_client/cli_samr.c index fae96b561c7..294317acc2f 100644 --- a/source/rpc_client/cli_samr.c +++ b/source/rpc_client/cli_samr.c @@ -102,8 +102,8 @@ do a SAMR change user password command ****************************************************************************/ BOOL do_samr_chgpasswd_user(struct cli_state *cli, char *srv_name, char *user_name, - char nt_newpass[516], char nt_oldhash[16], - char lm_newpass[516], char lm_oldhash[16]) + char nt_newpass[516], uchar nt_oldhash[16], + char lm_newpass[516], uchar lm_oldhash[16]) { prs_struct data; prs_struct rdata; |