diff options
author | Xin LI <delphij@FreeBSD.org> | 2017-04-25 03:42:16 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2017-04-25 03:42:16 +0000 |
commit | 9c83c2751d26fe2e059d6956f0398b56ed919a6a (patch) | |
tree | b75ed451f9f8336fb4958dbae186b6bd98aa65c0 /signal.c | |
parent | 1cabeb1f0c93e44ebc8a1d3a78100a962ac3f047 (diff) |
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/signal.c b/signal.c index 836946ce89867..24f78f102c2e9 100644 --- a/signal.c +++ b/signal.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2015 Mark Nudelman + * Copyright (C) 1984-2016 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. @@ -40,7 +40,8 @@ extern long jump_sline_fraction; */ /* ARGSUSED*/ static RETSIGTYPE -u_interrupt(int type) +u_interrupt(type) + int type; { bell(); #if OS2 @@ -67,7 +68,8 @@ u_interrupt(int type) */ /* ARGSUSED*/ static RETSIGTYPE -stop(int type) +stop(type) + int type; { LSIGNAL(SIGTSTP, stop); sigs |= S_STOP; @@ -82,7 +84,8 @@ stop(int type) */ /* ARGSUSED*/ public RETSIGTYPE -winch(int type) +winch(type) + int type; { LSIGNAL(SIGWINCH, winch); sigs |= S_WINCH; @@ -96,7 +99,8 @@ winch(int type) */ /* ARGSUSED*/ public RETSIGTYPE -winch(int type) +winch(type) + int type; { LSIGNAL(SIGWIND, winch); sigs |= S_WINCH; @@ -113,7 +117,8 @@ winch(int type) #include "windows.h" static BOOL WINAPI -wbreak_handler(DWORD dwCtrlType) +wbreak_handler(dwCtrlType) + DWORD dwCtrlType; { switch (dwCtrlType) { @@ -132,7 +137,8 @@ wbreak_handler(DWORD dwCtrlType) * Set up the signal handlers. */ public void -init_signals(int on) +init_signals(on) + int on; { if (on) { @@ -184,9 +190,9 @@ init_signals(int on) * A received signal cause a bit to be set in "sigs". */ public void -psignals(void) +psignals() { - int tsignals; + register int tsignals; if ((tsignals = sigs) == 0) return; |