summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-04-28 16:43:02 +0000
committerJeremy Allison <jra@samba.org>1998-04-28 16:43:02 +0000
commitb807469d40a816e9f61b797b6ab26a40bb4363cb (patch)
treeefc4b86023ee3494178896102d73d47fe9636fe2
parentd7cecb7bd3cfcab48af07366e24b65b2bb8b09bb (diff)
downloadsamba-b807469d40a816e9f61b797b6ab26a40bb4363cb.tar.gz
samba-b807469d40a816e9f61b797b6ab26a40bb4363cb.tar.bz2
samba-b807469d40a816e9f61b797b6ab26a40bb4363cb.zip
Fixed checked in code that didn't compile.
Jeremy. (This used to be commit 5f258abf526243f753c3a64cde2e1f67e4d60b6b)
-rw-r--r--source3/libsmb/clientgen.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 3f8c6e32cc..7fc19a5f39 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -452,18 +452,14 @@ BOOL cli_RNetShareEnum(struct cli_state *cli, void (*fn)(char *, uint32, char *)
p += 4;
if (cli_api(cli,
- PTR_DIFF(p,param),
- 0, /* data count */
- 1024, /* mprcount */
- BUFFER_SIZE, /* mdrcount */
- &rprcnt, &rdrcnt,
- param,NULL,
- &rparam,&rdata))
+ param, PTR_DIFF(p,param), 1024, /* Param, length, maxlen */
+ NULL, 0, BUFFER_SIZE, /* data, length, maxlen */
+ &rparam, &rprcnt, /* return params, length */
+ &rdata, &rdrcnt)) /* return data, length */
{
int res = SVAL(rparam,0);
int converter=SVAL(rparam,2);
int i;
- BOOL long_share_name=False;
if (res == 0)
{
@@ -1465,7 +1461,7 @@ BOOL cli_oem_change_password(struct cli_state *cli, char *user, char *new_passwo
* for this area to make it harder to
* decrypt. JRA.
*/
- generate_random_buffer(data, sizeof(data), False);
+ generate_random_buffer((unsigned char *)data, sizeof(data), False);
fstrcpy( &data[512 - new_pw_len], new_password);
SIVAL(data, 512, new_pw_len);