diff options
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r-- | networking/telnetd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index 1c4dede39..c6789e19c 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c | |||
@@ -369,7 +369,7 @@ telnetd_main(int argc, char **argv) | |||
369 | sockaddr_type sa; | 369 | sockaddr_type sa; |
370 | int master_fd; | 370 | int master_fd; |
371 | int on = 1; | 371 | int on = 1; |
372 | int portnbr = 23; | 372 | unsigned portnbr = 23; |
373 | struct in_addr bind_addr = { .s_addr = 0x0 }; | 373 | struct in_addr bind_addr = { .s_addr = 0x0 }; |
374 | char *opt_portnbr, *opt_bindaddr; | 374 | char *opt_portnbr, *opt_bindaddr; |
375 | #endif /* CONFIG_FEATURE_TELNETD_INETD */ | 375 | #endif /* CONFIG_FEATURE_TELNETD_INETD */ |
@@ -393,7 +393,7 @@ telnetd_main(int argc, char **argv) | |||
393 | //if (opt & 1) // -f | 393 | //if (opt & 1) // -f |
394 | //if (opt & 2) // -l | 394 | //if (opt & 2) // -l |
395 | #ifndef CONFIG_FEATURE_TELNETD_INETD | 395 | #ifndef CONFIG_FEATURE_TELNETD_INETD |
396 | if (opt & 4) portnbr = atoi(opt_portnbr); // -p | 396 | if (opt & 4) portnbr = xatou16(opt_portnbr); // -p |
397 | if (opt & 8) // -b | 397 | if (opt & 8) // -b |
398 | if (inet_aton(opt_bindaddr, &bind_addr) == 0) bb_show_usage(); | 398 | if (inet_aton(opt_bindaddr, &bind_addr) == 0) bb_show_usage(); |
399 | #endif /* CONFIG_FEATURE_TELNETD_INETD */ | 399 | #endif /* CONFIG_FEATURE_TELNETD_INETD */ |