diff options
author | Justin Pettit <jpettit@nicira.com> | 2009-12-14 23:08:10 -0800 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2009-12-15 00:14:32 -0800 |
commit | 18b9283b986ab65f64385981f4ba8e237f658c0d (patch) | |
tree | d3663370aa75177738ac493a69854e452a89cfc4 /lib/process.c | |
parent | c100e025e2ca1bc330512e003bac8359ee65318d (diff) |
Clean-up compiler warnings about ignoring return values
Some systems complain when certain functions' return values are not
checked. This commit fixes those warnings.
Creating ignore() function suggested by Ben Pfaff.
Diffstat (limited to 'lib/process.c')
-rw-r--r-- | lib/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/process.c b/lib/process.c index 0c7f424f..12168f7e 100644 --- a/lib/process.c +++ b/lib/process.c @@ -289,7 +289,7 @@ process_exited(struct process *p) return true; } else { char buf[_POSIX_PIPE_BUF]; - read(fds[0], buf, sizeof buf); + ignore(read(fds[0], buf, sizeof buf)); return false; } } @@ -617,7 +617,7 @@ sigchld_handler(int signr UNUSED) } } } - write(fds[1], "", 1); + ignore(write(fds[1], "", 1)); } static bool |