[Pkg-gnupg-commit] [gnupg2] 61/132: gpgscm: Fix test program.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed May 17 03:07:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 7f9032d4a8ce53ce1a972bd3c1f8d20b3776756b
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Wed Apr 12 12:05:53 2017 +0900

    gpgscm: Fix test program.
    
    * tests/gpgscm/t-child.c (main): Fix for setmode.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 tests/gpgscm/t-child.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/gpgscm/t-child.c b/tests/gpgscm/t-child.c
index 547eb17..f4e3a04 100644
--- a/tests/gpgscm/t-child.c
+++ b/tests/gpgscm/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
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list