diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-30 18:39:47 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-30 18:39:47 +0300 |
commit | 80ff0e15965e75532e9cd127bf06ec20ee4f1816 (patch) | |
tree | 31a5ec5434752275d743997b9f061613dbeca4f2 /src/testzzuf | |
parent | a3e227ea1590bc2dc3c46bd708b842d4d3818828 (diff) | |
download | libmicrohttpd-80ff0e15965e75532e9cd127bf06ec20ee4f1816.tar.gz libmicrohttpd-80ff0e15965e75532e9cd127bf06ec20ee4f1816.zip |
tests: fixed some 'unused return value' compiler warnings
Diffstat (limited to 'src/testzzuf')
-rw-r--r-- | src/testzzuf/socat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testzzuf/socat.c b/src/testzzuf/socat.c index 3daa54a5..b21f2c6f 100644 --- a/src/testzzuf/socat.c +++ b/src/testzzuf/socat.c | |||
@@ -73,7 +73,7 @@ zzuf_socat_start () | |||
73 | } | 73 | } |
74 | if (zzuf_pid != 0) | 74 | if (zzuf_pid != 0) |
75 | { | 75 | { |
76 | sleep (1); /* allow zzuf and socat to start */ | 76 | (void)sleep (1); /* allow zzuf and socat to start */ |
77 | status = 0; | 77 | status = 0; |
78 | if (0 < waitpid (zzuf_pid, &status, WNOHANG)) | 78 | if (0 < waitpid (zzuf_pid, &status, WNOHANG)) |
79 | { | 79 | { |
@@ -106,7 +106,7 @@ zzuf_socat_stop () | |||
106 | fprintf (stderr, "Failed to killpg: %s\n", strerror (errno)); | 106 | fprintf (stderr, "Failed to killpg: %s\n", strerror (errno)); |
107 | kill (zzuf_pid, SIGINT); | 107 | kill (zzuf_pid, SIGINT); |
108 | waitpid (zzuf_pid, &status, 0); | 108 | waitpid (zzuf_pid, &status, 0); |
109 | sleep (1); /* allow socat to also die in peace */ | 109 | (void)sleep (1); /* allow socat to also die in peace */ |
110 | } | 110 | } |
111 | } | 111 | } |
112 | 112 | ||