telnet: use poll, it's shorter

*: style fixes
This commit is contained in:
Denis Vlasenko 2007-11-06 02:23:39 +00:00
parent cd0fbb5e77
commit 1bec1b980e
5 changed files with 79 additions and 80 deletions

View file

@ -352,9 +352,10 @@ static void INET6_setroute(int action, char **args)
memset(&sa6, 0, sizeof(sa6));
} else {
char *cp;
if ((cp = strchr(target, '/'))) { /* Yes... const to non is ok. */
*cp = 0;
prefix_len = xatoul_range(cp+1, 0, 128);
cp = strchr(target, '/'); /* Yes... const to non is ok. */
if (cp) {
*cp = '\0';
prefix_len = xatoul_range(cp + 1, 0, 128);
} else {
prefix_len = 128;
}