diff options
author | John Gilmore <gnu@cygnus> | 1991-05-30 08:52:52 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-05-30 08:52:52 +0000 |
commit | d11c44f1ee9650339d5c874d3227611f82e3f104 (patch) | |
tree | 23487e3405f8e4c1202d95d6c3e3fa4fe67ac2fb /gdb/utils.c | |
parent | 924bbb3815705cba6e369cbea2dff86884e9265a (diff) | |
download | gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.zip gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.tar.gz gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.tar.bz2 |
Roll in Tiemann changes for gcc -ansi. Fix assorted bugs. See ChangeLog.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index cce338d..28c3c87 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -58,7 +58,8 @@ extern char *realloc(); /* Can't #define it since printcmd.c needs it */ void vprintf (format, ap) - char *format; void *ap; + char *format; + va_alist ap; { vfprintf (stdout, format, ap); } @@ -380,6 +381,7 @@ void quit () { target_terminal_ours (); + wrap_here ((char *)0); /* Force out any pending output */ #ifdef HAVE_TERMIO ioctl (fileno (stdout), TCFLSH, 1); #else /* not HAVE_TERMIO */ @@ -873,7 +875,7 @@ fputs_filtered (linebuffer, stream) if (*lineptr == '\n') { chars_printed = 0; - wrap_here (""); /* Spit out chars, cancel further wraps */ + wrap_here ((char *)0); /* Spit out chars, cancel further wraps */ lines_printed++; putc ('\n', stream); lineptr++; |