projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
828d6bb
)
use bb_xbind/bb_xlisten
author
Mike Frysinger
<vapier@gentoo.org>
Wed, 7 Jun 2006 20:06:24 +0000
(20:06 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Wed, 7 Jun 2006 20:06:24 +0000
(20:06 -0000)
networking/fakeidentd.c
patch
|
blob
|
history
diff --git
a/networking/fakeidentd.c
b/networking/fakeidentd.c
index b097d9980b196b1feaf5f282a4aee27641f8882d..b5b70f5162b92ad9cca7074614eedbd8dde9ad34 100644
(file)
--- 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);
}