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:
parent
60d9a9e6b4
commit
7f9032d4a8
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user