]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_IO_new_file_close_it): Set _fileno to -1, not EOF.
authorUlrich Drepper <drepper@redhat.com>
Tue, 24 Aug 1999 23:13:07 +0000 (23:13 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 24 Aug 1999 23:13:07 +0000 (23:13 +0000)
libio/fileops.c
libio/oldfileops.c

index b9d4d69e885a96624d0a65fb1ee2d648b4252d41..c0416074ea399a851f828dcf0e332dae7bf425d8 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995, 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
    Written by Per Bothner <bothner@cygnus.com>.
 
@@ -142,7 +142,7 @@ _IO_new_file_close_it (fp)
 
   _IO_un_link (fp);
   fp->_flags = _IO_MAGIC|CLOSED_FILEBUF_FLAGS;
-  fp->_fileno = EOF;
+  fp->_fileno = -1;
   fp->_offset = _IO_pos_BAD;
 
   return close_status ? close_status : write_status;
index 2f25ecc7634584efc0e214531d18443998b13217..a2223771478263319bded477b07a806219416147 100644 (file)
@@ -149,7 +149,7 @@ _IO_old_file_close_it (fp)
 
   _IO_un_link (fp);
   fp->_flags = _IO_MAGIC|CLOSED_FILEBUF_FLAGS;
-  fp->_fileno = EOF;
+  fp->_fileno = -1;
   fp->_old_offset = _IO_pos_BAD;
 
   return close_status ? close_status : write_status;