This was unused in the callers, also do this for symmetry.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
NTSTATUS cli_list_trans(struct cli_state *cli, const char *mask,
uint32_t attribute, int info_level,
- NTSTATUS (*fn)(const char *mnt, struct file_info *finfo,
- const char *mask, void *private_data),
+ NTSTATUS (*fn)(
+ struct file_info *finfo,
+ const char *mask,
+ void *private_data),
void *private_data)
{
TALLOC_CTX *frame = talloc_stackframe();
}
num_finfo = talloc_array_length(finfo);
for (i=0; i<num_finfo; i++) {
- status = fn(cli->dfs_mountpoint, &finfo[i], mask, private_data);
+ status = fn(&finfo[i], mask, private_data);
if (!NT_STATUS_IS_OK(status)) {
goto fail;
}
const char *, void *), void *state);
NTSTATUS cli_list_trans(struct cli_state *cli, const char *mask,
uint32_t attribute, int info_level,
- NTSTATUS (*fn)(const char *mnt, struct file_info *finfo,
- const char *mask, void *private_data),
+ NTSTATUS (*fn)(
+ struct file_info *finfo,
+ const char *mask,
+ void *private_data),
void *private_data);
struct tevent_req *cli_list_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
char *short_name;
};
-static NTSTATUS listfn(const char *mnt, struct file_info *f, const char *s,
- void *private_data)
+static NTSTATUS listfn(
+ struct file_info *f,
+ const char *s,
+ void *private_data)
{
struct rn_state *state = (struct rn_state *)private_data;
if (strcmp(f->name,".") == 0) {