From 310536a709ccbfbcb3148f5662d5e89da993f7cd Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 23 Oct 1997 17:54:21 +0000 Subject: missed nmbsync.c when adding setup count and setup pointer arguments to cli_call_api(). sorting this for jeremy. there is a discrepancy between the client.c list_servers() and the nmbsync.c add_info() calls to cli_call_api() - one has an mdrcount of 1024, the other of zero. i don't know what difference this makes. (This used to be commit d8c265c515985414962bb5187c9f92d016281dcc) --- source3/nmbsync.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'source3/nmbsync.c') diff --git a/source3/nmbsync.c b/source3/nmbsync.c index e6061c0a0f..c922c8b833 100644 --- a/source3/nmbsync.c +++ b/source3/nmbsync.c @@ -82,9 +82,14 @@ static BOOL add_info(struct subnet_record *d, struct work_record *work, int serv pstrcpy(p, work->work_group); p = skip_string(p,1); - if (cli_call_api(PIPE_LANMAN, PTR_DIFF(p,param),0, 8, - BUFFER_SIZE - SAFETY_MARGIN, - &rprcnt,&rdrcnt, param,NULL, + if (cli_call_api(PIPE_LANMAN, + PTR_DIFF(p,param), /* param count */ + 8, /*data count */, + 0, /* setup count */, + 0, /* mprcount - whatever that is */ + BUFFER_SIZE - SAFETY_MARGIN, /* mdrcount - whatever that is */ + &rprcnt,&rdrcnt, + param,NULL, NULL, &rparam,&rdata)) { int res = SVAL(rparam,0); -- cgit