* defs.h utils.c remote-hms.c remote-pa.c remote.c: Fix defs and
authorStu Grossman <grossman@cygnus>
Tue, 7 Mar 1995 08:57:32 +0000 (08:57 +0000)
committerStu Grossman <grossman@cygnus>
Tue, 7 Mar 1995 08:57:32 +0000 (08:57 +0000)
usage of fputc_unfiltered and putchar_unfiltered.  Eliminate
putc_unfiltered (it's superfluous).

gdb/ChangeLog
gdb/remote-hms.c
gdb/remote-os9k.c
gdb/remote-pa.c

index 605b52a3d350036e4f42562b46cd7cb2d0027f95..149c68279a69aaf94d7fc653f122a2ed78e1e329 100644 (file)
@@ -1,5 +1,9 @@
 Tue Mar  7 00:23:47 1995  Stu Grossman  (grossman@cygnus.com)
 
+       * defs.h utils.c remote-hms.c remote-pa.c remote.c:  Fix defs and
+       usage of fputc_unfiltered and putchar_unfiltered.  Eliminate
+       putc_unfiltered (it's superfluous).
+
        * command.h command.c:  Add var_enum command type.  It's like
        var_string but allows only only one of the specified strings.
 
index 4305ef2fb5d82a26da3679726f3e2d42d268776f..371fb389b25ae803c86192ff59460807eb537191 100644 (file)
@@ -521,12 +521,12 @@ hms_wait (pid, status)
 
          /* Print out any characters which have been swallowed.  */
          for (p = swallowed; p < swallowed_p; ++p)
-           putc_unfiltered (*p);
+           putchar_unfiltered (*p);
          swallowed_p = swallowed;
 
          if ((ch != '\r' && ch != '\n') || swallowed_cr > 10)
            {
-             putc_unfiltered (ch);
+             putchar_unfiltered (ch);
              swallowed_cr = 10;
            }
          swallowed_cr++;
index 9b6f7bafa40ab9643adb0e43b9e5731f68bdb9a0..a4f4e86a6c8bdf3e4bae128ceb3ce73ad95bbf15 100644 (file)
@@ -49,13 +49,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "symfile.h"
 #include "objfiles.h"
 #include "gdb-stabs.h"
-#include <termio.h>
-
-#ifdef HAVE_TERMIO
-#  define TERMINAL struct termios
-#else
-#  define TERMINAL struct sgttyb
-#endif
 
 struct monitor_ops *current_monitor;
 struct cmd_list_element *showlist;
index ed4286bcf3ada4e46979981c006ff35d6f3ce7d5..58837bf722fdf7789a272a30eac5bb09371d263b 100644 (file)
@@ -1196,7 +1196,7 @@ putpkt (buf)
                case '$':
                  if (started_error_output)
                    {
-                     putc_unfiltered ('\n');
+                     putchar_unfiltered ('\n');
                      started_error_output = 0;
                    }
                }
@@ -1227,7 +1227,7 @@ putpkt (buf)
                      started_error_output = 1;
                      printf_unfiltered ("putpkt: Junk: ");
                    }
-                 putc_unfiltered (ch & 0177);
+                 putchar_unfiltered (ch & 0177);
                }
              continue;
            }