changeset 20348:3665989afd33

Add prototypes. (save_signal_handlers): Make static. (restore_signal_handlers): Likewise.
author Andreas Schwab <schwab@suse.de>
date Tue, 25 Nov 1997 13:38:04 +0000
parents d8e5f3c1618b
children 6ab8801244c2
files src/sysdep.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Tue Nov 25 13:28:06 1997 +0000
+++ b/src/sysdep.c	Tue Nov 25 13:38:04 1997 +0000
@@ -637,9 +637,12 @@
 struct save_signal
 {
   int code;
-  SIGTYPE (*handler) ();
+  SIGTYPE (*handler) P_ ((int));
 };
 
+static void save_signal_handlers P_ ((struct save_signal *));
+static void restore_signal_handlers P_ ((struct save_signal *));
+
 /* Suspend the Emacs process; give terminal to its superior.  */
 
 sys_suspend ()
@@ -831,17 +834,19 @@
 #endif /* !VMS */
 }
 
+static void
 save_signal_handlers (saved_handlers)
      struct save_signal *saved_handlers;
 {
   while (saved_handlers->code)
     {
       saved_handlers->handler
-	= (SIGTYPE (*) ()) signal (saved_handlers->code, SIG_IGN);
+	= (SIGTYPE (*) P_ ((int))) signal (saved_handlers->code, SIG_IGN);
       saved_handlers++;
     }
 }
 
+static void
 restore_signal_handlers (saved_handlers)
      struct save_signal *saved_handlers;
 {