From: Tomasz Bursztyka Date: Thu, 27 Oct 2011 07:24:57 +0000 (+0300) Subject: tools: Disable getopt unknown option display in iptables_test X-Git-Tag: 2.0_alpha~996 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=553d7582db6124205b91c3c65f84dcaebbe30884;p=framework%2Fconnectivity%2Fconnman.git tools: Disable getopt unknown option display in iptables_test --- diff --git a/tools/iptables-test.c b/tools/iptables-test.c index 5a3df95..fb8cefe 100644 --- a/tools/iptables-test.c +++ b/tools/iptables-test.c @@ -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) {