summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-03-17 14:43:13 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-03-17 14:43:13 +0000
commit27131fe8f7418bf22b1e3000ea6a5d7b1ec8ebd4 (patch)
tree60e09b84cd880dc1be0eba2f31020b771ad9a802 /apps
parent23bc7961d2486254082be1ba0eb4bedb8bfbcfb3 (diff)
Fix warnings about ignored return values.
Diffstat (limited to 'apps')
-rw-r--r--apps/speed.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/speed.c b/apps/speed.c
index 2d34310e61..d4b0fddf7b 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -2644,7 +2644,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())
@@ -2656,7 +2660,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;