aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2017-04-12 03:05:53 +0000
committerNIIBE Yutaka <[email protected]>2017-04-12 03:05:53 +0000
commite71c0d39d2fb896df85949a61811e3b19fd050d7 (patch)
tree1b57c48db4084e6028a5ab0ce3daac25cdae3ad6
parenttests: Fix distcheck. (diff)
downloadlibgpg-error-e71c0d39d2fb896df85949a61811e3b19fd050d7.tar.gz
libgpg-error-e71c0d39d2fb896df85949a61811e3b19fd050d7.zip
gpgscm: Fix test program.
* tests/gpgscm/t-child.c (main): Fix for setmode. Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--t-child.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/t-child.c b/t-child.c
index 547eb17..f4e3a04 100644
--- a/t-child.c
+++ b/t-child.c
@@ -33,9 +33,9 @@ main (int argc, char **argv)
char buffer[4096];
memset (buffer, 'A', sizeof buffer);
#if _WIN32
- if (! setmode (stdin, O_BINARY))
+ if (! setmode (fileno (stdin), O_BINARY))
return 23;
- if (! setmode (stdout, O_BINARY))
+ if (! setmode (fileno (stdout), O_BINARY))
return 23;
#endif