commit | 1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Tue Nov 06 02:23:39 2007 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Tue Nov 06 02:23:39 2007 +0000 |
tree | 924352d9309f62c733927506ed08086a2880556c | |
parent | cd0fbb5e778e3cef7f88b71a55b673cbdf7cee85 [diff] [blame] |
telnet: use poll, it's shorter *: style fixes
diff --git a/networking/inetd.c b/networking/inetd.c index 94d3df6..9c17c92 100644 --- a/networking/inetd.c +++ b/networking/inetd.c
@@ -430,7 +430,8 @@ 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; }