diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-03-17 14:43:13 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-08-06 21:04:08 +0100 |
commit | 1a80d390219bc8767ea3cbf19a47b02ebe0f5c04 (patch) | |
tree | 4a52888c2891253dc4f2b7abc1ee8b801daf0b7c /apps | |
parent | c5526a16b166ef66fc6040cb6dbf35f067a0f64c (diff) |
Fix warnings about ignored return values.
(cherry picked from commit 27131fe8f7418bf22b1e3000ea6a5d7b1ec8ebd4)
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/speed.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/speed.c b/apps/speed.c index 65f85fecf7..24f18b8f6c 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -2608,7 +2608,11 @@ static int do_multi(int multi) fds=malloc(multi*sizeof *fds); for(n=0 ; n < multi ; ++n) { - pipe(fd); + if (pipe(fd) == -1) + { + fprintf(stderr, "pipe failure\n"); + exit(1); + } fflush(stdout); fflush(stderr); if(fork()) @@ -2620,7 +2624,11 @@ static int do_multi(int multi) { close(fd[0]); close(1); - dup(fd[1]); + if (dup(fd[1]) == -1) + { + fprintf(stderr, "dup failed\n"); + exit(1); + } close(fd[1]); mr=1; usertime=0; |