From e053adc87e0abf05c9c60ba898abee398a2de4ce Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 2 Mar 2014 22:09:08 +0100 Subject: [PATCH] commio: Explicitly ignore return value from setsockopt(TCP_DEFER_ACCEPT). --- libratbox/src/commio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libratbox/src/commio.c b/libratbox/src/commio.c index 4d24f018..369edba6 100644 --- a/libratbox/src/commio.c +++ b/libratbox/src/commio.c @@ -772,7 +772,7 @@ rb_listen(rb_fde_t *F, int backlog, int defer_accept) #ifdef TCP_DEFER_ACCEPT if (defer_accept && !result) { - setsockopt(F->fd, IPPROTO_TCP, TCP_DEFER_ACCEPT, &backlog, sizeof(int)); + (void)setsockopt(F->fd, IPPROTO_TCP, TCP_DEFER_ACCEPT, &backlog, sizeof(int)); } #endif #ifdef SO_ACCEPTFILTER