diff options
author | Richard Sharpe <sharpe@samba.org> | 2001-01-04 11:35:55 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2001-01-04 11:35:55 +0000 |
commit | 92ebc81734a8a4165f88eeba9c05a05ea2917584 (patch) | |
tree | 278055c9e2d894178e6ce36b418e04399f46b264 /source3/client/client.c | |
parent | b6cb83d0d11cdea2fed06f63dffa48f4ed22d290 (diff) | |
download | samba-92ebc81734a8a4165f88eeba9c05a05ea2917584.tar.gz samba-92ebc81734a8a4165f88eeba9c05a05ea2917584.tar.bz2 samba-92ebc81734a8a4165f88eeba9c05a05ea2917584.zip |
I need a callback arg for cli_NetServerEnum and cli_RNetShareEnum, so I had
to modifiy any routine that calls it to pass NULL and so forth.
Should have no impact. It compiles OK.
(This used to be commit 7f862e387f935a2125481338eee850afcb8d82ba)
Diffstat (limited to 'source3/client/client.c')
-rw-r--r-- | source3/client/client.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 5995f1a243..1a1abaf732 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1533,7 +1533,8 @@ static void cmd_lcd(void) /**************************************************************************** list a share name ****************************************************************************/ -static void browse_fn(const char *name, uint32 m, const char *comment) +static void browse_fn(const char *name, uint32 m, + const char *comment, void *state) { fstring typestr; @@ -1566,7 +1567,7 @@ static BOOL browse_host(BOOL sort) printf("\n\tSharename Type Comment\n"); printf("\t--------- ---- -------\n"); - if((ret = cli_RNetShareEnum(cli, browse_fn)) == -1) + if((ret = cli_RNetShareEnum(cli, browse_fn, NULL)) == -1) printf("Error returning browse list: %s\n", cli_errstr(cli)); return (ret != -1); @@ -1575,7 +1576,8 @@ static BOOL browse_host(BOOL sort) /**************************************************************************** list a server name ****************************************************************************/ -static void server_fn(const char *name, uint32 m, const char *comment) +static void server_fn(const char *name, uint32 m, + const char *comment, void *state) { printf("\t%-16.16s %s\n", name, comment); } @@ -1590,12 +1592,12 @@ static BOOL list_servers(char *wk_grp) printf("\n\tServer Comment\n"); printf("\t--------- -------\n"); - cli_NetServerEnum(cli, cli->server_domain, SV_TYPE_ALL, server_fn); + cli_NetServerEnum(cli, cli->server_domain, SV_TYPE_ALL, server_fn, NULL); printf("\n\tWorkgroup Master\n"); printf("\t--------- -------\n"); - cli_NetServerEnum(cli, cli->server_domain, SV_TYPE_DOMAIN_ENUM, server_fn); + cli_NetServerEnum(cli, cli->server_domain, SV_TYPE_DOMAIN_ENUM, server_fn, NULL); return True; } |