diff options
author | Richard Sharpe <sharpe@samba.org> | 2001-01-05 13:11:29 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2001-01-05 13:11:29 +0000 |
commit | dca808cbc4b52e38701f814f7aac043ddd1ca1c1 (patch) | |
tree | e46027ede552d316c37c0a615915bb8553002526 /source3/client/client.c | |
parent | e70b103fff25f5bf4244a6ba2aed9593c99f749d (diff) | |
download | samba-dca808cbc4b52e38701f814f7aac043ddd1ca1c1.tar.gz samba-dca808cbc4b52e38701f814f7aac043ddd1ca1c1.tar.bz2 samba-dca808cbc4b52e38701f814f7aac043ddd1ca1c1.zip |
Needed a callback arg on cli_list ...
(This used to be commit d45e667a74fc2fcbf69c4819d480269c03dbfae4)
Diffstat (limited to 'source3/client/client.c')
-rw-r--r-- | source3/client/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 1a1abaf732..8405926121 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -473,7 +473,7 @@ static int do_list_queue_empty(void) /**************************************************************************** a helper for do_list ****************************************************************************/ -static void do_list_helper(file_info *f, const char *mask) +static void do_list_helper(file_info *f, const char *mask, void *state) { if (f->mode & aDIR) { if (do_list_dirs && do_this_one(f)) { @@ -537,7 +537,7 @@ void do_list(const char *mask,uint16 attribute,void (*fn)(file_info *),BOOL rec, */ pstring head; pstrcpy(head, do_list_queue_head()); - cli_list(cli, head, attribute, do_list_helper); + cli_list(cli, head, attribute, do_list_helper, NULL); remove_do_list_queue_head(); if ((! do_list_queue_empty()) && (fn == display_finfo)) { @@ -561,7 +561,7 @@ void do_list(const char *mask,uint16 attribute,void (*fn)(file_info *),BOOL rec, } else { - if (cli_list(cli, mask, attribute, do_list_helper) == -1) + if (cli_list(cli, mask, attribute, do_list_helper, NULL) == -1) { DEBUG(0, ("%s listing %s\n", cli_errstr(cli), mask)); } |