aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fdpassing-socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fdpassing-socket.c')
-rw-r--r--tests/fdpassing-socket.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/fdpassing-socket.c b/tests/fdpassing-socket.c
index bbf4b97..251c609 100644
--- a/tests/fdpassing-socket.c
+++ b/tests/fdpassing-socket.c
@@ -30,8 +30,6 @@
# include <windows.h>
# include <wincrypt.h>
# include <io.h>
-#else
-# include <sys/socket.h>
#endif
#include <unistd.h>
#include <errno.h>
@@ -68,11 +66,11 @@ cmd_echo (assuan_context_t ctx, char *line)
nbytes = 0;
while ( (c = gpgrt_fgetc (fp)) != -1)
{
- putc (c, stdout);
+ putc (c, stderr);
nbytes++;
}
- fflush (stdout);
- log_info ("done printing %d bytes to stdout\n", nbytes);
+ fflush (stderr);
+ log_info ("done printing %d bytes to stderr\n", nbytes);
gpgrt_fclose (fp);
return 0;