* utils.c, defs.h (putchar_unfiltered, fputc_unfiltered): Make
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 15 Mar 1995 23:24:24 +0000 (23:24 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 15 Mar 1995 23:24:24 +0000 (23:24 +0000)
argument be an int, not a char.  Using a prototype followed by an
old-style function definition in a case where an argument is
widened is a GCC-ism not supported by the native AIX compiler.

gdb/ChangeLog
gdb/utils.c

index 8198a4e9781317ef33b93d8b82d35c379c561a2f..a01d0d2da3aac32370363473bff25facb6f38de9 100644 (file)
@@ -1,3 +1,10 @@
+Wed Mar 15 15:18:27 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * utils.c, defs.h (putchar_unfiltered, fputc_unfiltered): Make
+       argument be an int, not a char.  Using a prototype followed by an
+       old-style function definition in a case where an argument is
+       widened is a GCC-ism not supported by the native AIX compiler.
+
 Wed Mar 15 12:22:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
 
        * nlmstub.def: Removed, this was moved to nlm/gdbserve.def 
index 8bdd1413903d2b90456ebf0a8078ec23af9dca53..0d51b7aac937599eade6f8f376f285bbee0f3a3a 100644 (file)
@@ -1382,25 +1382,29 @@ fputs_filtered (linebuffer, stream)
   fputs_maybe_filtered (linebuffer, stream, 1);
 }
 
-void
-putc_unfiltered (c)
+int
+putchar_unfiltered (c)
      int c;
 {
   char buf[2];
+
   buf[0] = c;
   buf[1] = 0;
   fputs_unfiltered (buf, gdb_stdout);
+  return c;
 }
 
-void
+int
 fputc_unfiltered (c, stream)
      int c;
      FILE * stream;
 {
   char buf[2];
+
   buf[0] = c;
   buf[1] = 0;
   fputs_unfiltered (buf, stream);
+  return c;
 }
 
 
This page took 0.031039 seconds and 4 git commands to generate.