diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-12-11 13:31:59 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-12-16 23:39:16 +0100 |
commit | afd47189e8644aacc411628f35d098db6d971a46 (patch) | |
tree | c090d92aba523956189aac038f0f592e0e1f87e6 | |
parent | b2e54423867258d721ca421c4b1f179291acd6cd (diff) | |
download | ubus-afd47189e8644aacc411628f35d098db6d971a46.tar.gz |
examples: remove dead increments
Fixes following error reported by clang-9 analyzer:
examples/server.c:244:2: warning: Value stored to 'argc' is never read
argc -= optind;
^ ~~~~~~
examples/server.c:245:2: warning: Value stored to 'argv' is never read
argv += optind;
^ ~~~~~~
Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r-- | examples/client.c | 3 | ||||
-rw-r--r-- | examples/server.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/examples/client.c b/examples/client.c index 7ef5663..aae09f4 100644 --- a/examples/client.c +++ b/examples/client.c @@ -220,9 +220,6 @@ int main(int argc, char **argv) } } - argc -= optind; - argv += optind; - uloop_init(); ctx = ubus_connect(ubus_socket); diff --git a/examples/server.c b/examples/server.c index 004eaf3..0913fff 100644 --- a/examples/server.c +++ b/examples/server.c @@ -241,9 +241,6 @@ int main(int argc, char **argv) } } - argc -= optind; - argv += optind; - uloop_init(); signal(SIGPIPE, SIG_IGN); |