From fd4308640ffde8de8fd79491539b01530c24e3c5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 11 Oct 2020 07:35:52 +0200 Subject: [PATCH] smbclient: Wrap a few long lines Make the next patch simpler Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/client/client.c | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/source3/client/client.c b/source3/client/client.c index d9db3a9393e..0c14e65389d 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -723,8 +723,11 @@ static int do_list_queue_empty(void) A helper for do_list. ****************************************************************************/ -static NTSTATUS do_list_helper(const char *mntpoint, struct file_info *f, - const char *mask, void *state) +static NTSTATUS do_list_helper( + const char *mntpoint, + struct file_info *f, + const char *mask, + void *state) { struct cli_state *cli_state = (struct cli_state *)state; TALLOC_CTX *ctx = talloc_tos(); @@ -839,9 +842,14 @@ NTSTATUS do_list(const char *mask, /* check for dfs */ - status = cli_resolve_path(ctx, "", - creds, - cli, head, &targetcli, &targetpath); + status = cli_resolve_path( + ctx, + "", + creds, + cli, + head, + &targetcli, + &targetpath); if (!NT_STATUS_IS_OK(status)) { d_printf("do_list: [%s] %s\n", head, nt_errstr(status)); @@ -849,8 +857,12 @@ NTSTATUS do_list(const char *mask, continue; } - status = cli_list(targetcli, targetpath, attribute, - do_list_helper, targetcli); + status = cli_list( + targetcli, + targetpath, + attribute, + do_list_helper, + targetcli); if (!NT_STATUS_IS_OK(status)) { d_printf("%s listing %s\n", nt_errstr(status), targetpath); -- 2.47.3