projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0543603
)
GH804: Fix unused-result warnings in dasync
author
Alessandro Ghedini
<alessandro@ghedini.me>
Mon, 7 Mar 2016 12:27:52 +0000
(12:27 +0000)
committer
Rich Salz
<rsalz@openssl.org>
Mon, 7 Mar 2016 17:21:07 +0000
(12:21 -0500)
Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
engines/e_dasync.c
patch
|
blob
|
history
diff --git
a/engines/e_dasync.c
b/engines/e_dasync.c
index 0580103d239dbe2a81b7461978e37af38e8ad385..25dd233769dc21e451b886c4ee1f0008a83765f4 100644
(file)
--- a/
engines/e_dasync.c
+++ b/
engines/e_dasync.c
@@
-338,7
+338,8
@@
static void dummy_pause_job(void) {
#if defined(ASYNC_WIN)
WriteFile(pipefds[1], &buf, 1, &numwritten, NULL);
#elif defined(ASYNC_POSIX)
- write(pipefds[1], &buf, 1);
+ if (write(pipefds[1], &buf, 1) < 0)
+ return;
#endif
/* Ignore errors - we carry on anyway */
@@
-348,7
+349,8
@@
static void dummy_pause_job(void) {
#if defined(ASYNC_WIN)
ReadFile(pipefds[0], &buf, 1, &numread, NULL);
#elif defined(ASYNC_POSIX)
- read(pipefds[0], &buf, 1);
+ if (read(pipefds[0], &buf, 1) < 0)
+ return;
#endif
}