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

@ -430,7 +430,8 @@ static void register_rpc(servtab_t *sep)
struct protoent *pp;
socklen_t size;
if ((pp = getprotobyname(sep->se_proto + 4)) == NULL) {
pp = getprotobyname(sep->se_proto + 4);
if (pp == NULL) {
bb_perror_msg("%s: getproto", sep->se_proto);
return;
}