1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpgscm: Fix test program.

* tests/gpgscm/t-child.c (main): Fix for setmode.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2017-04-12 12:05:53 +09:00
parent 60d9a9e6b4
commit 7f9032d4a8

View File

@ -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