aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab1997-11-25 13:38:04 +0000
committerAndreas Schwab1997-11-25 13:38:04 +0000
commit35a05ccae646f5207003f53a61ab1f0217853e95 (patch)
tree7f50f0513e46a75ea6cddd530ba9bd8d60ad17af /src
parentbf1760bb9d784408e8511148f3afec6c1094d640 (diff)
downloademacs-35a05ccae646f5207003f53a61ab1f0217853e95.tar.gz
emacs-35a05ccae646f5207003f53a61ab1f0217853e95.zip
Add prototypes.
(save_signal_handlers): Make static. (restore_signal_handlers): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 48d4824e7f0..4349a75dcc0 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -637,9 +637,12 @@ child_setup_tty (out)
637struct save_signal 637struct save_signal
638{ 638{
639 int code; 639 int code;
640 SIGTYPE (*handler) (); 640 SIGTYPE (*handler) P_ ((int));
641}; 641};
642 642
643static void save_signal_handlers P_ ((struct save_signal *));
644static void restore_signal_handlers P_ ((struct save_signal *));
645
643/* Suspend the Emacs process; give terminal to its superior. */ 646/* Suspend the Emacs process; give terminal to its superior. */
644 647
645sys_suspend () 648sys_suspend ()
@@ -831,17 +834,19 @@ sys_subshell ()
831#endif /* !VMS */ 834#endif /* !VMS */
832} 835}
833 836
837static void
834save_signal_handlers (saved_handlers) 838save_signal_handlers (saved_handlers)
835 struct save_signal *saved_handlers; 839 struct save_signal *saved_handlers;
836{ 840{
837 while (saved_handlers->code) 841 while (saved_handlers->code)
838 { 842 {
839 saved_handlers->handler 843 saved_handlers->handler
840 = (SIGTYPE (*) ()) signal (saved_handlers->code, SIG_IGN); 844 = (SIGTYPE (*) P_ ((int))) signal (saved_handlers->code, SIG_IGN);
841 saved_handlers++; 845 saved_handlers++;
842 } 846 }
843} 847}
844 848
849static void
845restore_signal_handlers (saved_handlers) 850restore_signal_handlers (saved_handlers)
846 struct save_signal *saved_handlers; 851 struct save_signal *saved_handlers;
847{ 852{