summaryrefslogtreecommitdiff
path: root/usr.bin/less/signal.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-11-06 00:02:23 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-11-06 00:02:23 +0000
commitf0673817d8aef3dad3b7d17e78624aa3b8d77a6f (patch)
treeb84dbfa301550aca89bed0b87e52820f0fa3b70e /usr.bin/less/signal.c
parentcb76a2d2a9f53a226a662dd2f8c064a09b7e7388 (diff)
Remove LSIGNAL which is just the same as lsignal() now.
Diffstat (limited to 'usr.bin/less/signal.c')
-rw-r--r--usr.bin/less/signal.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr.bin/less/signal.c b/usr.bin/less/signal.c
index b58ec1fcdfa..ccb8f24cc21 100644
--- a/usr.bin/less/signal.c
+++ b/usr.bin/less/signal.c
@@ -74,18 +74,18 @@ init_signals(int on)
/*
* Set signal handlers.
*/
- (void) LSIGNAL(SIGINT, u_interrupt);
- (void) LSIGNAL(SIGTSTP, stop);
- (void) LSIGNAL(SIGWINCH, sigwinch);
- (void) LSIGNAL(SIGQUIT, SIG_IGN);
+ (void) lsignal(SIGINT, u_interrupt);
+ (void) lsignal(SIGTSTP, stop);
+ (void) lsignal(SIGWINCH, sigwinch);
+ (void) lsignal(SIGQUIT, SIG_IGN);
} else {
/*
* Restore signals to defaults.
*/
- (void) LSIGNAL(SIGINT, SIG_DFL);
- (void) LSIGNAL(SIGTSTP, SIG_DFL);
- (void) LSIGNAL(SIGWINCH, SIG_IGN);
- (void) LSIGNAL(SIGQUIT, SIG_DFL);
+ (void) lsignal(SIGINT, SIG_DFL);
+ (void) lsignal(SIGTSTP, SIG_DFL);
+ (void) lsignal(SIGWINCH, SIG_IGN);
+ (void) lsignal(SIGQUIT, SIG_DFL);
}
}
@@ -106,13 +106,13 @@ psignals(void)
/*
* Clean up the terminal.
*/
- LSIGNAL(SIGTTOU, SIG_IGN);
+ lsignal(SIGTTOU, SIG_IGN);
clear_bot();
deinit();
flush();
raw_mode(0);
- LSIGNAL(SIGTTOU, SIG_DFL);
- LSIGNAL(SIGTSTP, SIG_DFL);
+ lsignal(SIGTTOU, SIG_DFL);
+ lsignal(SIGTSTP, SIG_DFL);
kill(getpid(), SIGTSTP);
/*
* ... Bye bye. ...
@@ -120,7 +120,7 @@ psignals(void)
* Reset the terminal and arrange to repaint the
* screen when we get back to the main command loop.
*/
- LSIGNAL(SIGTSTP, stop);
+ lsignal(SIGTSTP, stop);
raw_mode(1);
init();
screen_trashed = 1;