This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]