tools: Disable getopt unknown option display in iptables_test
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Thu, 27 Oct 2011 07:24:57 +0000 (10:24 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 28 Oct 2011 19:26:13 +0000 (21:26 +0200)
tools/iptables-test.c

index 5a3df95..fb8cefe 100644 (file)
@@ -1402,6 +1402,9 @@ int main(int argc, char *argv[])
        xt_m = NULL;
        xt_t = NULL;
 
+       /* extension's options will generate false-positives errors */
+       opterr = 0;
+
        while ((c = getopt_long(argc, argv, "-A:D:F:I:L::N:X:d:i:j:m:o:s:t:",
                                connman_iptables_globals.opts, NULL)) != -1) {
                switch (c) {