Date: Sat, 10 Jun 2017 16:42:39 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r319794 - head/contrib/ipfilter/tools Message-ID: <201706101642.v5AGgdsf069731@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Sat Jun 10 16:42:39 2017 New Revision: 319794 URL: https://svnweb.freebsd.org/changeset/base/319794 Log: Flag poollist() (ippool -l) command line syntax errors. Modified: head/contrib/ipfilter/tools/ippool.c Modified: head/contrib/ipfilter/tools/ippool.c ============================================================================== --- head/contrib/ipfilter/tools/ippool.c Sat Jun 10 16:11:39 2017 (r319793) +++ head/contrib/ipfilter/tools/ippool.c Sat Jun 10 16:42:39 2017 (r319794) @@ -700,7 +700,13 @@ poollist(argc, argv) case 'v' : opts |= OPT_VERBOSE; break; + default : + usage(argv[0]); + break; /* keep compiler happy */ } + + if (argc - optind > 0) + usage(argv[0]); if (opts & OPT_DEBUG) fprintf(stderr, "poollist: opts = %#x\n", opts);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706101642.v5AGgdsf069731>