summaryrefslogtreecommitdiffhomepage
path: root/handler.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-02-16 12:16:57 +0100
committerSteven Barth <steven@midlink.org>2014-02-16 12:16:57 +0100
commite3dc49a34fdd0dd900271cdfe6bb1c05babe5ee6 (patch)
tree19d3c26da8f01b97c3b6b9f543cf8d0c793b1e93 /handler.c
parent34192161b45520713ebaa5447553fa546e6ee932 (diff)
Work around warn_unused_result in recent gcc/libc
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/handler.c b/handler.c
index f4e27e1..c5e47ad 100644
--- a/handler.c
+++ b/handler.c
@@ -27,14 +27,14 @@ netifd_dir_push(int fd)
int prev_fd = open(".", O_RDONLY | O_DIRECTORY);
system_fd_set_cloexec(prev_fd);
if (fd >= 0)
- fchdir(fd);
+ if (fchdir(fd)) {}
return prev_fd;
}
static void
netifd_dir_pop(int prev_fd)
{
- fchdir(prev_fd);
+ if (fchdir(prev_fd)) {}
close(prev_fd);
}