From: Stef Walter Date: Fri, 8 Aug 2014 15:40:21 +0000 (+0200) Subject: Quiten down scanner warnings about unused variables X-Git-Tag: 0.21.2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1d563400c9747d6c470cba7abfa9a31d92349d3;p=p11-kit Quiten down scanner warnings about unused variables --- 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); }