diff options
author | Denis Vlasenko | 2006-10-08 12:49:22 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-08 12:49:22 +0000 |
commit | 1385899416a4396385ad421ae1f532be7103738a (patch) | |
tree | fc4d14a910593d1235318bb36abe5e9f72d2039e /networking/telnetd.c | |
parent | 5625415085e68ac5e150f54e685417c866620d76 (diff) | |
download | busybox-1385899416a4396385ad421ae1f532be7103738a.zip busybox-1385899416a4396385ad421ae1f532be7103738a.tar.gz |
attempt to regularize atoi mess.
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 1c4dede..c6789e1 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c @@ -369,7 +369,7 @@ telnetd_main(int argc, char **argv) sockaddr_type sa; int master_fd; int on = 1; - int portnbr = 23; + unsigned portnbr = 23; struct in_addr bind_addr = { .s_addr = 0x0 }; char *opt_portnbr, *opt_bindaddr; #endif /* CONFIG_FEATURE_TELNETD_INETD */ @@ -393,7 +393,7 @@ telnetd_main(int argc, char **argv) //if (opt & 1) // -f //if (opt & 2) // -l #ifndef CONFIG_FEATURE_TELNETD_INETD - if (opt & 4) portnbr = atoi(opt_portnbr); // -p + if (opt & 4) portnbr = xatou16(opt_portnbr); // -p if (opt & 8) // -b if (inet_aton(opt_bindaddr, &bind_addr) == 0) bb_show_usage(); #endif /* CONFIG_FEATURE_TELNETD_INETD */ |