diff options
| author | Andreas Schwab | 1997-11-25 13:38:04 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1997-11-25 13:38:04 +0000 |
| commit | 35a05ccae646f5207003f53a61ab1f0217853e95 (patch) | |
| tree | 7f50f0513e46a75ea6cddd530ba9bd8d60ad17af /src | |
| parent | bf1760bb9d784408e8511148f3afec6c1094d640 (diff) | |
| download | emacs-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.c | 9 |
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) | |||
| 637 | struct save_signal | 637 | struct save_signal |
| 638 | { | 638 | { |
| 639 | int code; | 639 | int code; |
| 640 | SIGTYPE (*handler) (); | 640 | SIGTYPE (*handler) P_ ((int)); |
| 641 | }; | 641 | }; |
| 642 | 642 | ||
| 643 | static void save_signal_handlers P_ ((struct save_signal *)); | ||
| 644 | static 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 | ||
| 645 | sys_suspend () | 648 | sys_suspend () |
| @@ -831,17 +834,19 @@ sys_subshell () | |||
| 831 | #endif /* !VMS */ | 834 | #endif /* !VMS */ |
| 832 | } | 835 | } |
| 833 | 836 | ||
| 837 | static void | ||
| 834 | save_signal_handlers (saved_handlers) | 838 | save_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 | ||
| 849 | static void | ||
| 845 | restore_signal_handlers (saved_handlers) | 850 | restore_signal_handlers (saved_handlers) |
| 846 | struct save_signal *saved_handlers; | 851 | struct save_signal *saved_handlers; |
| 847 | { | 852 | { |