diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-06 05:23:39 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-06 05:23:39 +0300 |
commit | 1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5 (patch) | |
tree | 924352d9309f62c733927506ed08086a2880556c /networking/inetd.c | |
parent | cd0fbb5e778e3cef7f88b71a55b673cbdf7cee85 (diff) |
telnet: use poll, it's shorter
*: style fixes
Diffstat (limited to 'networking/inetd.c')
-rw-r--r-- | networking/inetd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index 94d3df6e2..9c17c920c 100644 --- a/networking/inetd.c +++ b/networking/inetd.c @@ -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; } |