summaryrefslogtreecommitdiff
path: root/networking/fakeidentd.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-08-03 15:41:12 +0000
committerRob Landley <rob@landley.net>2006-08-03 15:41:12 +0000
commitd921b2ecc0d294ad4bf8c7458fc52a60c28727d2 (patch)
treee4a2769349867c441cf2983d83097bb66701a733 /networking/fakeidentd.c
parent6dce0b6fa79f2d4bb7e9d90e1fbc0f6beb25f855 (diff)
downloadbusybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.gz
busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.bz2
busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.zip
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
Diffstat (limited to 'networking/fakeidentd.c')
-rw-r--r--networking/fakeidentd.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/networking/fakeidentd.c b/networking/fakeidentd.c
index 9cdbc5725..6ee7c328e 100644
--- a/networking/fakeidentd.c
+++ b/networking/fakeidentd.c
@@ -10,19 +10,7 @@
10 */ 10 */
11 11
12#include "busybox.h" 12#include "busybox.h"
13
14#include <unistd.h>
15#include <string.h>
16#include <fcntl.h>
17#include <signal.h>
18#include <sys/syslog.h>
19
20#include <pwd.h>
21
22#include <sys/syslog.h> 13#include <sys/syslog.h>
23#include <time.h>
24#include <sys/socket.h>
25#include <errno.h>
26#include <sys/uio.h> 14#include <sys/uio.h>
27 15
28 16
@@ -97,7 +85,7 @@ static void inetbind(void)
97 else 85 else
98 port = se->s_port; 86 port = se->s_port;
99 87
100 s = bb_xsocket(AF_INET, SOCK_STREAM, 0); 88 s = xsocket(AF_INET, SOCK_STREAM, 0);
101 89
102 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)); 90 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one));
103 91
@@ -106,8 +94,8 @@ static void inetbind(void)
106 addr.sin_family = AF_INET; 94 addr.sin_family = AF_INET;
107 addr.sin_port = htons(port); 95 addr.sin_port = htons(port);
108 96
109 bb_xbind(s, (struct sockaddr *)&addr, len); 97 xbind(s, (struct sockaddr *)&addr, len);
110 bb_xlisten(s, 5); 98 xlisten(s, 5);
111 99
112 movefd(s, 0); 100 movefd(s, 0);
113} 101}