aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-06-07 20:06:24 +0000
committerMike Frysinger <vapier@gentoo.org>2006-06-07 20:06:24 +0000
commit830d258dee032b0a6902e037ea4c57db8fb47d78 (patch)
tree91d9367fc27a25d4fbe1cb456790b9a37563ef93 /networking
parent828d6bb3bca05f34f56f28859d681ac1d3b59073 (diff)
downloadbusybox-830d258dee032b0a6902e037ea4c57db8fb47d78.tar.gz
use bb_xbind/bb_xlisten
Diffstat (limited to 'networking')
-rw-r--r--networking/fakeidentd.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/networking/fakeidentd.c b/networking/fakeidentd.c
index b097d9980..b5b70f516 100644
--- a/networking/fakeidentd.c
+++ b/networking/fakeidentd.c
@@ -106,11 +106,8 @@ static void inetbind(void)
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
- if (bind(s, (struct sockaddr *)&addr, len) < 0) /* bb_xbind? */
- bb_perror_msg_and_die("Cannot bind() port %i", IDENT_PORT);
-
- if (listen(s, 5) < 0) /* bb_xlisten? */
- bb_perror_msg_and_die("Cannot listen() on port %i", IDENT_PORT);
+ bb_xbind(s, (struct sockaddr *)&addr, len);
+ bb_xlisten(s, 5);
movefd(s, 0);
}