Fix warnings about ignored return values.
(cherry picked from commit 27131fe8f7418bf22b1e3000ea6a5d7b1ec8ebd4) Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
parent
681d11b6fd
commit
21d24dd38a
12
apps/speed.c
12
apps/speed.c
@ -2767,7 +2767,11 @@ static int do_multi(int multi)
|
|||||||
fds=malloc(multi*sizeof *fds);
|
fds=malloc(multi*sizeof *fds);
|
||||||
for(n=0 ; n < multi ; ++n)
|
for(n=0 ; n < multi ; ++n)
|
||||||
{
|
{
|
||||||
pipe(fd);
|
if (pipe(fd) == -1)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "pipe failure\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
if(fork())
|
if(fork())
|
||||||
@ -2779,7 +2783,11 @@ static int do_multi(int multi)
|
|||||||
{
|
{
|
||||||
close(fd[0]);
|
close(fd[0]);
|
||||||
close(1);
|
close(1);
|
||||||
dup(fd[1]);
|
if (dup(fd[1]) == -1)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "dup failed\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
close(fd[1]);
|
close(fd[1]);
|
||||||
mr=1;
|
mr=1;
|
||||||
usertime=0;
|
usertime=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user