aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorMichael Meissner <meissner@cygnus.com>1997-12-11 18:31:56 +0000
committerJeff Law <law@gcc.gnu.org>1997-12-11 11:31:56 -0700
commitfc50a8b9f2a84feb8e5a53a00ea5fde89297fefa (patch)
treed406e9f2133cf3b2472a686c2677011800a05154 /libio
parentf49b1654d331d48b5c268e5bdd4b08cb2ea732bb (diff)
downloadgcc-fc50a8b9f2a84feb8e5a53a00ea5fde89297fefa.zip
gcc-fc50a8b9f2a84feb8e5a53a00ea5fde89297fefa.tar.gz
gcc-fc50a8b9f2a84feb8e5a53a00ea5fde89297fefa.tar.bz2
stdiostream.cc (sys_read): Declare ch with int type, rather than without a type.
* stdiostream.cc (sys_read): Declare ch with int type, rather than without a type. Bring over from devo. From-SVN: r17042
Diffstat (limited to 'libio')
-rw-r--r--libio/ChangeLog5
-rw-r--r--libio/stdiostream.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/libio/ChangeLog b/libio/ChangeLog
index 3973153..f1a0603 100644
--- a/libio/ChangeLog
+++ b/libio/ChangeLog
@@ -33,6 +33,11 @@ Wed Nov 26 16:08:50 1997 Richard Henderson (rth@cygnus.com)
* gen-params (va_list): Check for and use __gnuc_va_list.
(NULL): Work around some linux kernel headers and redefine NULL.
+Mon Nov 24 17:04:18 1997 Michael Meissner <meissner@cygnus.com>
+
+ * stdiostream.cc (sys_read): Declare ch with int type, rather than
+ without a type.
+
Tue Nov 18 09:53:58 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
* stdstrbufs.cc (DEF_STDFILE): Use STD_VTABLE.
diff --git a/libio/stdiostream.cc b/libio/stdiostream.cc
index 80db5e5..bc9bef0 100644
--- a/libio/stdiostream.cc
+++ b/libio/stdiostream.cc
@@ -74,7 +74,7 @@ streamsize stdiobuf::sys_read(char* buf, streamsize size)
// after we have gotten rid of the double indirection. FIXME
if (size == 1)
{
- register ch = getc(_file);
+ register int ch = getc(_file);
if (ch == EOF)
return 0;
*buf = (char)ch;