summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2014-11-11 13:36:31 +0530
committerAnthony G. Basile <blueness@gentoo.org>2014-11-17 17:59:53 -0500
commit690c8559602524a2dd506516eb119fd5063d2c83 (patch)
tree9e917de35fca097cb02611fed15cf5c6e385511a
parent9f5d1bc3cdf67815d0721dc9d5e9f1049e4cffd5 (diff)
log: unchecked return value from library
fix 1237557 Unchecked return value from library Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--src/shared/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/log.c b/src/shared/log.c
index af6a983087..d19103a1e2 100644
--- a/src/shared/log.c
+++ b/src/shared/log.c
@@ -118,7 +118,7 @@ static int create_log_socket(int type) {
timeval_store(&tv, 10 * USEC_PER_MSEC);
else
timeval_store(&tv, 10 * USEC_PER_SEC);
- setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));
+ (void)setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));
return fd;
}