diff options
| author | 2011-09-21 19:01:49 +0000 | |
|---|---|---|
| committer | 2011-09-21 19:01:49 +0000 | |
| commit | 43b5ee64c8fc957c7c1910e10b3c1d8b09175e9d (patch) | |
| tree | b81d4eddec652d1adef554fd257e840be3825d4a /usr.bin/less/edit.c | |
| parent | include err.h for warnx (diff) | |
| download | wireguard-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.c | 2 |
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; |
