From: Andreas Schneider Date: Thu, 18 Nov 2021 10:32:42 +0000 (+0100) Subject: s3:rpcclient: Remove trailing white spaces in rpcclient.c X-Git-Tag: tdb-1.4.6~474 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33eb7a1bc9c21463dc699d6daaa6a1e19f668268;p=thirdparty%2Fsamba.git s3:rpcclient: Remove trailing white spaces in rpcclient.c BUG: https://bugzilla.samba.org/show_bug.cgi?id=14767 Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index cf32229f303..379fa3872ea 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -1,4 +1,4 @@ -/* +/* Unix SMB/CIFS implementation. RPC pipe client @@ -73,9 +73,9 @@ static char **completion_fn(const char *text, int start, int end) #if 0 /* JERRY */ /* FIXME!!! -- what to do when completing argument? */ - /* for words not at the start of the line fallback + /* for words not at the start of the line fallback to filename completion */ - if (start) + if (start) return NULL; #endif @@ -103,7 +103,7 @@ static char **completion_fn(const char *text, int start, int end) for (i=0; commands->cmd_set[i].name; i++) { if ((strncmp(text, commands->cmd_set[i].name, strlen(text)) == 0) && (( commands->cmd_set[i].returntype == RPC_RTYPE_NTSTATUS && - commands->cmd_set[i].ntfn ) || + commands->cmd_set[i].ntfn ) || ( commands->cmd_set[i].returntype == RPC_RTYPE_WERROR && commands->cmd_set[i].wfn))) { matches[count] = SMB_STRDUP(commands->cmd_set[i].name); @@ -233,7 +233,7 @@ static NTSTATUS cmd_listcommands(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct /* Help on one command */ - for (tmp = cmd_list; tmp; tmp = tmp->next) + for (tmp = cmd_list; tmp; tmp = tmp->next) { tmp_set = tmp->cmd_set;