]> granicus.if.org Git - p11-kit/commitdiff
Quiten down scanner warnings about unused variables
authorStef Walter <stef@thewalter.net>
Fri, 8 Aug 2014 15:40:21 +0000 (17:40 +0200)
committerStef Walter <stef@thewalter.net>
Fri, 8 Aug 2014 16:44:51 +0000 (18:44 +0200)
p11-kit/lists.c
trust/list.c

index c6f33dadfef05f180a11e2e3718208ed80b2e569..5804be2a75e6a7506b0670feab8920d676dcf1e0 100644 (file)
@@ -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;
        }
index 7ee49266be37bd7964318acac269a55e6c54cfbd..8a172ebca4057a78d201ff22ccc734f770804854 100644 (file)
@@ -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);
        }