summaryrefslogtreecommitdiff
path: root/networking/pscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/pscan.c')
-rw-r--r--networking/pscan.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/networking/pscan.c b/networking/pscan.c
index 17985d2..95b0a93 100644
--- a/networking/pscan.c
+++ b/networking/pscan.c
@@ -75,8 +75,11 @@ int pscan_main(int argc UNUSED_PARAM, char **argv)
unsigned rtt_4;
unsigned start, diff;
- opt_complementary = "=1"; /* exactly one non-option */
- opt = getopt32(argv, "cbp:P:t:T:", &opt_min_port, &opt_max_port, &opt_timeout, &opt_min_rtt);
+ opt = getopt32(argv, "^"
+ "cbp:P:t:T:"
+ "\0" "=1", /* exactly one non-option */
+ &opt_min_port, &opt_max_port, &opt_timeout, &opt_min_rtt
+ );
argv += optind;
max_port = xatou_range(opt_max_port, 1, 65535);
port = xatou_range(opt_min_port, 1, max_port);