summaryrefslogtreecommitdiffstats
path: root/usr.bin/less/edit.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2011-09-21 19:01:49 +0000
committermillert <millert@openbsd.org>2011-09-21 19:01:49 +0000
commit43b5ee64c8fc957c7c1910e10b3c1d8b09175e9d (patch)
treeb81d4eddec652d1adef554fd257e840be3825d4a /usr.bin/less/edit.c
parentinclude err.h for warnx (diff)
downloadwireguard-openbsd-43b5ee64c8fc957c7c1910e10b3c1d8b09175e9d.tar.xz
wireguard-openbsd-43b5ee64c8fc957c7c1910e10b3c1d8b09175e9d.zip
Use volatile sig_atomic_t, not int, for the sigs variable. Also
move the call to bell() out of u_interrupt() (a signal handler). OK and with help from deraadt@
Diffstat (limited to 'usr.bin/less/edit.c')
-rw-r--r--usr.bin/less/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/less/edit.c b/usr.bin/less/edit.c
index 2f5e47498aa..733131536b3 100644
--- a/usr.bin/less/edit.c
+++ b/usr.bin/less/edit.c
@@ -23,7 +23,7 @@ extern char *every_first_cmd;
extern int any_display;
extern int force_open;
extern int is_tty;
-extern int sigs;
+extern volatile sig_atomic_t sigs;
extern IFILE curr_ifile;
extern IFILE old_ifile;
extern struct scrpos initial_scrpos;