diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-03-11 23:02:50 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-03-11 23:04:05 +0100 |
commit | c74f1d2cb48c6a9216ea901178e43c02ac7da0dc (patch) | |
tree | 61fd33cb19cddc9f3f8046c7c30aef16fb327870 | |
parent | 62b7083c13a9afc16b872367db93f8a775164343 (diff) | |
download | busybox-w32-c74f1d2cb48c6a9216ea901178e43c02ac7da0dc.tar.gz busybox-w32-c74f1d2cb48c6a9216ea901178e43c02ac7da0dc.tar.bz2 busybox-w32-c74f1d2cb48c6a9216ea901178e43c02ac7da0dc.zip |
tcpsvd: fix fallout from opt_complementary removal
text data bss dec hex filename
933035 473 6836 940344 e5938 busybox_old
933051 473 6836 940360 e5948 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/tcpudp.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/networking/tcpudp.c b/networking/tcpudp.c index d4c69e0f7..51c59e118 100644 --- a/networking/tcpudp.c +++ b/networking/tcpudp.c | |||
@@ -269,17 +269,22 @@ int tcpudpsvd_main(int argc UNUSED_PARAM, char **argv) | |||
269 | 269 | ||
270 | tcp = (applet_name[0] == 't'); | 270 | tcp = (applet_name[0] == 't'); |
271 | 271 | ||
272 | /* "+": stop on first non-option */ | ||
272 | #ifdef SSLSVD | 273 | #ifdef SSLSVD |
273 | opts = getopt32(argv, "^+" | 274 | opts = getopt32(argv, "^+" |
274 | "c:+C:i:x:u:l:Eb:+hpt:vU:/:Z:K:" /* -c NUM, -b NUM */ | 275 | "c:+C:i:x:u:l:Eb:+hpt:vU:/:Z:K:" /* -c NUM, -b NUM */ |
276 | "\0" | ||
275 | /* 3+ args, -i at most once, -p implies -h, -v is a counter */ | 277 | /* 3+ args, -i at most once, -p implies -h, -v is a counter */ |
276 | "\0" "-3:i--i:ph:vv", | 278 | "-3:i--i:ph:vv", |
277 | &cmax, &str_C, &instructs, &instructs, &user, &preset_local_hostname, | 279 | &cmax, &str_C, &instructs, &instructs, &user, &preset_local_hostname, |
278 | &backlog, &str_t, &ssluser, &root, &cert, &key, &verbose | 280 | &backlog, &str_t, &ssluser, &root, &cert, &key, &verbose |
279 | ); | 281 | ); |
280 | #else | 282 | #else |
281 | /* "+": stop on first non-option */ | 283 | opts = getopt32(argv, "^+" |
282 | opts = getopt32(argv, "+c:+C:i:x:u:l:Eb:hpt:v", | 284 | "c:+C:i:x:u:l:Eb:+hpt:v" /* -c NUM, -b NUM */ |
285 | "\0" | ||
286 | /* 3+ args, -i at most once, -p implies -h, -v is a counter */ | ||
287 | "-3:i--i:ph:vv", | ||
283 | &cmax, &str_C, &instructs, &instructs, &user, &preset_local_hostname, | 288 | &cmax, &str_C, &instructs, &instructs, &user, &preset_local_hostname, |
284 | &backlog, &str_t, &verbose | 289 | &backlog, &str_t, &verbose |
285 | ); | 290 | ); |