summaryrefslogtreecommitdiff
path: root/xutils.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-12 13:59:46 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-05-12 13:59:46 +0200
commita2937f460bb9603d6f7ec19d1f1ebe5adb40020d (patch)
tree0663a3860250260b22726d95359acb7757b093e7 /xutils.h
parentb76adfd12a21676abb82e9f1ebe134510d9a4766 (diff)
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 <tklauser@distanz.ch>
Diffstat (limited to 'xutils.h')
-rw-r--r--xutils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xutils.h b/xutils.h
index d1835e4..38c8da4 100644
--- a/xutils.h
+++ b/xutils.h
@@ -46,7 +46,7 @@ extern void device_set_flags(const char *ifname, const short flags);
extern void drop_privileges(bool enforce, uid_t uid, gid_t gid);
extern void xlockme(void);
extern void xunlockme(void);
-extern int set_nonblocking(int fd);
+extern void set_nonblocking(int fd);
extern int set_nonblocking_sloppy(int fd);
extern int set_reuseaddr(int fd);
extern void set_sock_prio(int fd, int prio);