diff options
author | Justus Winter <[email protected]> | 2016-01-25 16:45:19 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-02-23 10:58:20 +0000 |
commit | 709e2a7e9a3197e8ded4be0b05c138e8d5adbca6 (patch) | |
tree | a92650a91d77916786194b3310c60f1f61314200 | |
parent | common/exechelp: Disable debugging by default. (diff) | |
download | gnupg-709e2a7e9a3197e8ded4be0b05c138e8d5adbca6.tar.gz gnupg-709e2a7e9a3197e8ded4be0b05c138e8d5adbca6.zip |
common/exechelp: Avoid magic numbers.
* common/exechelp-w32.c (do_create_pipe): Use symbolic names.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/exechelp-w32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/exechelp-w32.c b/common/exechelp-w32.c index 3ddff8ee5..11bcea78a 100644 --- a/common/exechelp-w32.c +++ b/common/exechelp-w32.c @@ -300,7 +300,7 @@ do_create_pipe (int filedes[2], int inherit_idx) err = gpg_error (GPG_ERR_GENERAL); if (!create_inheritable_pipe (fds, inherit_idx)) { - filedes[0] = _open_osfhandle (handle_to_fd (fds[0]), 0); + filedes[0] = _open_osfhandle (handle_to_fd (fds[0]), O_RDONLY); if (filedes[0] == -1) { log_error ("failed to translate osfhandle %p\n", fds[0]); @@ -308,7 +308,7 @@ do_create_pipe (int filedes[2], int inherit_idx) } else { - filedes[1] = _open_osfhandle (handle_to_fd (fds[1]), 1); + filedes[1] = _open_osfhandle (handle_to_fd (fds[1]), O_APPEND); if (filedes[1] == -1) { log_error ("failed to translate osfhandle %p\n", fds[1]); |