diff options
author | Martin Schwenke <martin@meltin.net> | 2019-05-23 17:53:19 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2019-06-05 10:25:50 +0000 |
commit | 887dc174f2320de2318d8bd56f1b58c95c10519e (patch) | |
tree | afa2261ef573c31bc30b46fab041eecf6b184b71 /ctdb/common | |
parent | 94e41a8466f024edb6eb069c0c5f8025599cf116 (diff) | |
download | samba-887dc174f2320de2318d8bd56f1b58c95c10519e.tar.gz |
ctdb-common: Avoid unused value warning
The incremented value of argc is indeed never used. Leave it as a
comment to warn anyone cutting and pasting the code.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/common')
-rw-r--r-- | ctdb/common/run_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/common/run_event.c b/ctdb/common/run_event.c index 3682f778768..ca4e572a806 100644 --- a/ctdb/common/run_event.c +++ b/ctdb/common/run_event.c @@ -146,7 +146,7 @@ static int script_args(TALLOC_CTX *mem_ctx, const char *event_str, } argv[argc] = NULL; - argc += 1; + /* argc += 1 */ *out = argv; return 0; |