From b8b81a6f8fc8083ebef4a5557fe8e2121d623152 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 14 Jan 2007 12:47:27 +0000 Subject: small size optimization --- networking/isrv_identd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'networking/isrv_identd.c') 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) static void inetd_mode(void) { identd_buf_t *buf = xzalloc(sizeof(*buf)); + /* buf->pos = 0; - xzalloc did it */ /* We do NOT want nonblocking I/O here! */ - buf->fd_flag = fcntl(0, F_GETFL, 0); + /* buf->fd_flag = 0; - xzalloc did it */ do alarm(TIMEOUT); - while (do_rd(0, (void*)&buf) == 0) /* repeat */; + while (do_rd(0, (void*)&buf) == 0); } int fakeidentd_main(int argc, char **argv) -- cgit v1.2.3