summaryrefslogtreecommitdiff
path: root/main.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 /main.c
parent34192161b45520713ebaa5447553fa546e6ee932 (diff)
downloadnetifd-e3dc49a34fdd0dd900271cdfe6bb1c05babe5ee6.tar.gz
Work around warn_unused_result in recent gcc/libc
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index d8cb17f..43ec24f 100644
--- a/main.c
+++ b/main.c
@@ -152,7 +152,7 @@ netifd_start_process(const char **argv, char **env, struct netifd_process *proc)
}
}
if (proc->dir_fd >= 0)
- fchdir(proc->dir_fd);
+ if (fchdir(proc->dir_fd)) {}
close(pfds[0]);