From a2937f460bb9603d6f7ec19d1f1ebe5adb40020d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 12 May 2013 13:59:46 +0200 Subject: xutils: Make set_nonblocking() void The return values is always 0 and it is never checked anyhow, so make the function void. Signed-off-by: Tobias Klauser --- xutils.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'xutils.c') diff --git a/xutils.c b/xutils.c index 019c445..60b598c 100644 --- a/xutils.c +++ b/xutils.c @@ -169,13 +169,11 @@ void set_sock_uncork(int fd, int udp) set_tcp_uncork(fd); } -int set_nonblocking(int fd) +void set_nonblocking(int fd) { int ret = fcntl(fd, F_SETFL, fcntl(fd, F_GETFD, 0) | O_NONBLOCK); if (unlikely(ret < 0)) panic("Cannot fcntl!\n"); - - return 0; } int set_nonblocking_sloppy(int fd) -- cgit v1.2.3-54-g00ecf