This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/ob] Fix some K&R ism
- From: Andrew Cagney <ac131313 at ges dot redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 18 Sep 2002 18:51:16 -0400
- Subject: [patch/ob] Fix some K&R ism
The ARI hits -- more --
An e-mail suggesting GCC use ISO C appears -- more --
The GCC steering commitee hits -- more --
You die ;-)
commited, trunk and branch,
Andrew
2002-09-18 Andrew Cagney <ac131313@redhat.com>
* infrun.c (signal_stop_update): Convert definition to ISO C.
(signal_print_update): Ditto.
(signal_pass_update): Ditto.
* inflow.c (terminal_save_ours): Ditto.
Index: inflow.c
===================================================================
RCS file: /cvs/src/src/gdb/inflow.c,v
retrieving revision 1.15
diff -u -r1.15 inflow.c
--- inflow.c 26 Aug 2002 19:18:33 -0000 1.15
+++ inflow.c 18 Sep 2002 22:43:15 -0000
@@ -205,7 +205,7 @@
and gdb must be able to restore it correctly. */
void
-terminal_save_ours ()
+terminal_save_ours (void)
{
if (gdb_has_a_terminal ())
{
Index: infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.70
diff -u -r1.70 infrun.c
--- infrun.c 23 Aug 2002 21:55:36 -0000 1.70
+++ infrun.c 18 Sep 2002 22:43:16 -0000
@@ -3531,9 +3531,7 @@
}
int
-signal_stop_update (signo, state)
- int signo;
- int state;
+signal_stop_update (int signo, int state)
{
int ret = signal_stop[signo];
signal_stop[signo] = state;
@@ -3541,9 +3539,7 @@
}
int
-signal_print_update (signo, state)
- int signo;
- int state;
+signal_print_update (int signo, int state)
{
int ret = signal_print[signo];
signal_print[signo] = state;
@@ -3551,9 +3547,7 @@
}
int
-signal_pass_update (signo, state)
- int signo;
- int state;
+signal_pass_update (int signo, int state)
{
int ret = signal_program[signo];
signal_program[signo] = state;