summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2014-08-08 17:40:21 +0200
committerStef Walter <stef@thewalter.net>2014-08-08 17:40:21 +0200
commit0ef033d985847a66a9256617e18466e7febbc202 (patch)
tree06093dd05aabbef52825f9eb0debfa52f1dc9d50
parentcc3650775c762ceaf7605fb501046a79e083cf6e (diff)
downloadp11-kit-0ef033d985847a66a9256617e18466e7febbc202.tar.gz
Quiten down scanner warnings about unused variables
-rw-r--r--p11-kit/lists.c5
-rw-r--r--trust/list.c5
2 files changed, 2 insertions, 8 deletions
diff --git a/p11-kit/lists.c b/p11-kit/lists.c
index c6f33da..5804be2 100644
--- a/p11-kit/lists.c
+++ b/p11-kit/lists.c
@@ -281,10 +281,7 @@ p11_kit_list_modules (int argc,
}
}
- argc -= optind;
- argv += optind;
-
- if (argc != 0) {
+ if (argc - optind != 0) {
p11_message ("extra arguments specified");
return 2;
}
diff --git a/trust/list.c b/trust/list.c
index 7ee4926..8a172eb 100644
--- a/trust/list.c
+++ b/trust/list.c
@@ -230,10 +230,7 @@ p11_trust_list (int argc,
}
}
- argc -= optind;
- argv += optind;
-
- if (argc != 0) {
+ if (argc - optind != 0) {
p11_message ("extra arguments passed to command");
exit (2);
}