summaryrefslogtreecommitdiff
path: root/networking/inetd.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-11-06 02:23:39 +0000
committerDenis Vlasenko2007-11-06 02:23:39 +0000
commit1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5 (patch)
tree924352d9309f62c733927506ed08086a2880556c /networking/inetd.c
parentcd0fbb5e778e3cef7f88b71a55b673cbdf7cee85 (diff)
downloadbusybox-1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5.zip
busybox-1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5.tar.gz
telnet: use poll, it's shorter
*: style fixes
Diffstat (limited to 'networking/inetd.c')
-rw-r--r--networking/inetd.c3
1 files changed, 2 insertions, 1 deletions
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 @@ 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;
}