mirror of https://github.com/mirror/busybox.git
small size optimization
parent
844ff096ec
commit
b8b81a6f8f
|
@ -83,11 +83,12 @@ static int do_timeout(void **paramp)
|
||||||
static void inetd_mode(void)
|
static void inetd_mode(void)
|
||||||
{
|
{
|
||||||
identd_buf_t *buf = xzalloc(sizeof(*buf));
|
identd_buf_t *buf = xzalloc(sizeof(*buf));
|
||||||
|
/* buf->pos = 0; - xzalloc did it */
|
||||||
/* We do NOT want nonblocking I/O here! */
|
/* We do NOT want nonblocking I/O here! */
|
||||||
buf->fd_flag = fcntl(0, F_GETFL, 0);
|
/* buf->fd_flag = 0; - xzalloc did it */
|
||||||
do
|
do
|
||||||
alarm(TIMEOUT);
|
alarm(TIMEOUT);
|
||||||
while (do_rd(0, (void*)&buf) == 0) /* repeat */;
|
while (do_rd(0, (void*)&buf) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int fakeidentd_main(int argc, char **argv)
|
int fakeidentd_main(int argc, char **argv)
|
||||||
|
|
Loading…
Reference in New Issue