diff options
author | NIIBE Yutaka <[email protected]> | 2020-08-03 04:34:26 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2020-08-03 04:34:26 +0000 |
commit | 8e04cf969e95ccaa31bbaa7333938af1ea7476c6 (patch) | |
tree | 02e4ca0449ca00dc362fc690cd4ad083f3d0d7f1 /common/exectool.c | |
parent | agent: Fix coercion for pinentry_pid handling. (diff) | |
download | gnupg-8e04cf969e95ccaa31bbaa7333938af1ea7476c6.tar.gz gnupg-8e04cf969e95ccaa31bbaa7333938af1ea7476c6.zip |
w32: Fix cast from intptr_t of _get_osfhandle.
* common/exectool.c (gnupg_exec_tool_stream): Cast to unsigned long.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/exectool.c')
-rw-r--r-- | common/exectool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/exectool.c b/common/exectool.c index 49a619734..8013ba1cc 100644 --- a/common/exectool.c +++ b/common/exectool.c @@ -396,7 +396,7 @@ gnupg_exec_tool_stream (const char *pgmname, const char *argv[], create a copy of the array. */ #ifdef HAVE_W32_SYSTEM snprintf (extrafdbuf, sizeof extrafdbuf, "-&%lu", - (unsigned long)(void*)_get_osfhandle (extrapipe[0])); + (unsigned long)_get_osfhandle (extrapipe[0])); #else snprintf (extrafdbuf, sizeof extrafdbuf, "-&%d", extrapipe[0]); #endif |