[Openvas-commits] r13673 - in trunk/openvas-libraries: . hg
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Mon Jul 2 21:29:23 CEST 2012
Author: felix
Date: 2012-07-02 21:29:23 +0200 (Mon, 02 Jul 2012)
New Revision: 13673
Modified:
trunk/openvas-libraries/ChangeLog
trunk/openvas-libraries/hg/test.c
Log:
* hg/test.c: Fix switch/case statement (resolving a TODO), expand
usage output.
Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog 2012-07-02 13:50:50 UTC (rev 13672)
+++ trunk/openvas-libraries/ChangeLog 2012-07-02 19:29:23 UTC (rev 13673)
@@ -1,3 +1,8 @@
+2012-07-02 Felix Wolfsteller <felix.wolfsteller at greenbone.net>
+
+ * hg/test.c: Fix switch/case statement (resolving a TODO), expand
+ usage output.
+
2012-07-01 Felix Wolfsteller <felix.wolfsteller at greenbone.net>
* hg/CMakeLists.txt: Add new executable 'hg-test' which is a minimal
Modified: trunk/openvas-libraries/hg/test.c
===================================================================
--- trunk/openvas-libraries/hg/test.c 2012-07-02 13:50:50 UTC (rev 13672)
+++ trunk/openvas-libraries/hg/test.c 2012-07-02 19:29:23 UTC (rev 13673)
@@ -58,15 +58,17 @@
flags |= HG_SUBNET;
break;
case 'n':
- flags |= HG_REVLOOKUP; /** @TODO forgot to break here? */
+ flags |= HG_REVLOOKUP;
+ break;
case 'D':
flags |= HG_DISTRIBUTE;
+ break;
}
if (!argv[optind])
{
printf
- ("Usage : test -dps hostname/netmask\n-d : DNS axfr\n-p : ping hosts\n-s : whole network\n-D: distribute the load\n");
+ ("Usage : test -dpnsD hostname/netmask\n-d : DNS axfr\n-p : ping hosts\n-n : reverse lookup\n-s : whole network\n-D : distribute the load\n");
exit (0);
}
if ((flags & HG_PING) && geteuid ())
More information about the Openvas-commits
mailing list