diff options
author | Steven Barth <steven@midlink.org> | 2014-02-16 12:16:57 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-02-16 12:16:57 +0100 |
commit | e3dc49a34fdd0dd900271cdfe6bb1c05babe5ee6 (patch) | |
tree | 19d3c26da8f01b97c3b6b9f543cf8d0c793b1e93 /system-linux.c | |
parent | 34192161b45520713ebaa5447553fa546e6ee932 (diff) |
Work around warn_unused_result in recent gcc/libc
Diffstat (limited to 'system-linux.c')
-rw-r--r-- | system-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system-linux.c b/system-linux.c index e1b9924..cbcc5bd 100644 --- a/system-linux.c +++ b/system-linux.c @@ -156,7 +156,7 @@ static void system_set_sysctl(const char *path, const char *val) if (fd < 0) return; - write(fd, val, strlen(val)); + if (write(fd, val, strlen(val))) {} close(fd); } @@ -1135,7 +1135,7 @@ int system_flush_routes(void) if (fd < 0) continue; - write(fd, "-1", 2); + if (write(fd, "-1", 2)) {} close(fd); } return 0; |