telnet: use poll, it's shorter
*: style fixes
This commit is contained in:
parent
cd0fbb5e77
commit
1bec1b980e
5 changed files with 79 additions and 80 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue