about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2006-01-15 17:45:20 +0000
committerAndreas Jaeger <aj@suse.de>2006-01-15 17:45:20 +0000
commitf3495a080c2438d40eb044525eded5828275b3c8 (patch)
tree6852ecae4ad6767a959945603684f3f18f2048a2 /libio
parent4988ff9760dff1659c13930bfdda2116f95ecb18 (diff)
downloadglibc-f3495a080c2438d40eb044525eded5828275b3c8.tar.gz
glibc-f3495a080c2438d40eb044525eded5828275b3c8.tar.xz
glibc-f3495a080c2438d40eb044525eded5828275b3c8.zip
[BZ #2079]
* libio/fputwc_u.c (fputwc_unlocked): Fix return value. 
* libio/getwc_u.c (__getwc_unlocked): Likewise. 
* libio/wfileops.c (_IO_wdo_write): Likewise.
Diffstat (limited to 'libio')
-rw-r--r--libio/fputwc_u.c4
-rw-r--r--libio/getwc_u.c4
-rw-r--r--libio/wfileops.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/libio/fputwc_u.c b/libio/fputwc_u.c
index 93cbcab3d3..0478410cca 100644
--- a/libio/fputwc_u.c
+++ b/libio/fputwc_u.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1996, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1996, 1997, 1999, 2006 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
@@ -35,7 +35,7 @@ fputwc_unlocked (wc, fp)
      wchar_t wc;
      _IO_FILE *fp;
 {
-  CHECK_FILE (fp, EOF);
+  CHECK_FILE (fp, WEOF);
   if (_IO_fwide (fp, 1) < 0)
     return WEOF;
   return _IO_putwc_unlocked (wc, fp);
diff --git a/libio/getwc_u.c b/libio/getwc_u.c
index bdad3c8bf3..229343cc61 100644
--- a/libio/getwc_u.c
+++ b/libio/getwc_u.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993,1995,1996,1997,1999,2000  Free Software Foundation, Inc.
+/* Copyright (C) 1993,1995,1996,1997,1999,2000, 2006  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
@@ -33,7 +33,7 @@
 wint_t
 __getwc_unlocked (FILE *fp)
 {
-  CHECK_FILE (fp, EOF);
+  CHECK_FILE (fp, WEOF);
   return _IO_getwc_unlocked (fp);
 }
 
diff --git a/libio/wfileops.c b/libio/wfileops.c
index 5f9faac223..b930aad067 100644
--- a/libio/wfileops.c
+++ b/libio/wfileops.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993,1995,1997-2003,2004 Free Software Foundation, Inc.
+/* Copyright (C) 1993,1995,1997-2003,2004, 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Ulrich Drepper <drepper@cygnus.com>.
    Based on the single byte version by Per Bothner <bothner@cygnus.com>.
@@ -69,7 +69,7 @@ _IO_wdo_write (fp, data, to_do)
 	{
 	  if (_IO_new_do_write (fp, fp->_IO_write_base,
 				fp->_IO_write_ptr - fp->_IO_write_base) == EOF)
-	    return EOF;
+	    return WEOF;
 	}
 
       do