diff options
Diffstat (limited to 'stdio-common/test-popen.c')
-rw-r--r-- | stdio-common/test-popen.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/stdio-common/test-popen.c b/stdio-common/test-popen.c index b13a1c2542..aced45d5c9 100644 --- a/stdio-common/test-popen.c +++ b/stdio-common/test-popen.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -16,7 +16,7 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - +#include <errno.h> #include <stdio.h> #include <stdlib.h> @@ -26,9 +26,10 @@ write_data (FILE *stream) int i; for (i=0; i<100; i++) fprintf (stream, "%d\n", i); - if (ferror (stream)) { - fprintf (stderr, "Output to stream failed.\n"); - exit (1); + if (ferror (stream)) + { + fprintf (stderr, "Output to stream failed.\n"); + exit (1); } } |