diff --git a/sim/common/dv-sockser.c b/sim/common/dv-sockser.c index db81233e25b..e7664254a4e 100644 --- a/sim/common/dv-sockser.c +++ b/sim/common/dv-sockser.c @@ -175,7 +175,7 @@ dv_sockser_init (SIM_DESC sd) ??? Need a central signal management module. */ #ifdef SIGPIPE { - RETSIGTYPE (*orig) (); + RETSIGTYPE (*orig) (int); orig = signal (SIGPIPE, SIG_IGN); /* If a handler is already set up, don't mess with it. */ if (orig != SIG_DFL && orig != SIG_IGN) diff --git a/sim/common/nrun.c b/sim/common/nrun.c index 5dd3bc284bd..fc63baeb8a7 100644 --- a/sim/common/nrun.c +++ b/sim/common/nrun.c @@ -64,7 +64,7 @@ main (int argc, char **argv) enum sim_stop reason; int sigrc = 0; int single_step = 0; - RETSIGTYPE (*prev_sigint) (); + RETSIGTYPE (*prev_sigint) (int); myname = lbasename (argv[0]); diff --git a/sim/ppc/main.c b/sim/ppc/main.c index aa1c85e0af9..987e89ea32a 100644 --- a/sim/ppc/main.c +++ b/sim/ppc/main.c @@ -289,7 +289,7 @@ main(int argc, char * const *argv) psim_stack(simulation, argv, environ); { - RETSIGTYPE (*prev) (); + RETSIGTYPE (*prev) (int); prev = signal(SIGINT, cntrl_c); psim_run(simulation); signal(SIGINT, prev);