summaryrefslogtreecommitdiff
path: root/networking/isrv_identd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-14 12:47:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-14 12:47:27 +0000
commitb8b81a6f8fc8083ebef4a5557fe8e2121d623152 (patch)
tree8d03825978054f563950a2724de035dd39a012a5 /networking/isrv_identd.c
parent844ff096ec1804fc5d9efb6059f8cd714d60f3ea (diff)
downloadbusybox-w32-b8b81a6f8fc8083ebef4a5557fe8e2121d623152.tar.gz
busybox-w32-b8b81a6f8fc8083ebef4a5557fe8e2121d623152.tar.bz2
busybox-w32-b8b81a6f8fc8083ebef4a5557fe8e2121d623152.zip
small size optimization
Diffstat (limited to 'networking/isrv_identd.c')
-rw-r--r--networking/isrv_identd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/isrv_identd.c b/networking/isrv_identd.c
index 389103920..0279fc0bb 100644
--- a/networking/isrv_identd.c
+++ b/networking/isrv_identd.c
@@ -83,11 +83,12 @@ static int do_timeout(void **paramp)
83static void inetd_mode(void) 83static void inetd_mode(void)
84{ 84{
85 identd_buf_t *buf = xzalloc(sizeof(*buf)); 85 identd_buf_t *buf = xzalloc(sizeof(*buf));
86 /* buf->pos = 0; - xzalloc did it */
86 /* We do NOT want nonblocking I/O here! */ 87 /* We do NOT want nonblocking I/O here! */
87 buf->fd_flag = fcntl(0, F_GETFL, 0); 88 /* buf->fd_flag = 0; - xzalloc did it */
88 do 89 do
89 alarm(TIMEOUT); 90 alarm(TIMEOUT);
90 while (do_rd(0, (void*)&buf) == 0) /* repeat */; 91 while (do_rd(0, (void*)&buf) == 0);
91} 92}
92 93
93int fakeidentd_main(int argc, char **argv) 94int fakeidentd_main(int argc, char **argv)