summaryrefslogtreecommitdiff
path: root/usr.bin/vi/cl
diff options
context:
space:
mode:
authorBrian Callahan <bcallah@cvs.openbsd.org>2015-03-29 01:04:24 +0000
committerBrian Callahan <bcallah@cvs.openbsd.org>2015-03-29 01:04:24 +0000
commitb4f98a72523de675fc1cf66b41fe61cb0b4a0b26 (patch)
tree0456dc4619829dd88d49f8112d30c476215b6446 /usr.bin/vi/cl
parent3cbb07d98140287b6e47b44abb494a64e8189eb9 (diff)
Remove SA_INTERRUPT, HISTORIC_PRACTICE, and HISTORICAL_PRACTICE using
unifdef. It seems clear that no one was using these (SA_INTERRUPT didn't even build the other way). Tweak comments as appropriate. ok brynet@
Diffstat (limited to 'usr.bin/vi/cl')
-rw-r--r--usr.bin/vi/cl/cl_funcs.c6
-rw-r--r--usr.bin/vi/cl/cl_main.c13
2 files changed, 3 insertions, 16 deletions
diff --git a/usr.bin/vi/cl/cl_funcs.c b/usr.bin/vi/cl/cl_funcs.c
index 17938848c21..aba3cae5574 100644
--- a/usr.bin/vi/cl/cl_funcs.c
+++ b/usr.bin/vi/cl/cl_funcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl_funcs.c,v 1.17 2014/11/12 16:29:04 millert Exp $ */
+/* $OpenBSD: cl_funcs.c,v 1.18 2015/03/29 01:04:23 bcallah Exp $ */
/*-
* Copyright (c) 1993, 1994
@@ -261,10 +261,6 @@ cl_cursor(SCR *sp, size_t *yp, size_t *xp)
int
cl_deleteln(SCR *sp)
{
-#ifndef mvchgat
- CHAR_T ch;
- size_t col, lno, spcnt;
-#endif
size_t oldy, oldx;
/*
diff --git a/usr.bin/vi/cl/cl_main.c b/usr.bin/vi/cl/cl_main.c
index e80ea19b9a8..b5e8634f5e0 100644
--- a/usr.bin/vi/cl/cl_main.c
+++ b/usr.bin/vi/cl/cl_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl_main.c,v 1.25 2014/11/19 03:42:40 bentley Exp $ */
+/* $OpenBSD: cl_main.c,v 1.26 2015/03/29 01:04:23 bcallah Exp $ */
/*-
* Copyright (c) 1993, 1994
@@ -319,21 +319,12 @@ setsig(int signo, struct sigaction *oactp, void (*handler)(int))
* Use sigaction(2), not signal(3), since we don't always want to
* restart system calls. The example is when waiting for a command
* mode keystroke and SIGWINCH arrives. Besides, you can't portably
- * restart system calls (thanks, POSIX!). On the other hand, you
- * can't portably NOT restart system calls (thanks, Sun!). SunOS
- * used SA_INTERRUPT as their extension to NOT restart read calls.
- * We sure hope nobody else used it for anything else. Mom told me
- * there'd be days like this. She just never told me that there'd
- * be so many.
+ * restart system calls (thanks, POSIX!).
*/
act.sa_handler = handler;
sigemptyset(&act.sa_mask);
-#ifdef SA_INTERRUPT
- act.sa_flags = SA_INTERRUPT;
-#else
act.sa_flags = 0;
-#endif
return (sigaction(signo, &act, oactp));
}