mirror of
https://github.com/openbsd/src.git
synced 2024-12-21 23:18:00 -08:00
init(8): fix signal handler boolean type and qualifier
The variable "clang" is modified from a signal handler. Change it from an 'int' to a 'sig_atomic_t' and mark it 'volatile', as we recommend in signal(3). ok millert@ kn@
This commit is contained in:
parent
a0d2b8da8f
commit
bdce9d03b4
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: init.c,v 1.71 2021/10/24 21:24:21 deraadt Exp $ */
|
||||
/* $OpenBSD: init.c,v 1.72 2022/09/10 00:49:47 cheloha Exp $ */
|
||||
/* $NetBSD: init.c,v 1.22 1996/05/15 23:29:33 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
@ -176,7 +176,8 @@ void setsecuritylevel(int);
|
||||
void setprocresources(char *);
|
||||
int getsecuritylevel(void);
|
||||
int setupargv(session_t *, struct ttyent *);
|
||||
int clang;
|
||||
|
||||
volatile sig_atomic_t clang;
|
||||
|
||||
void clear_session_logs(session_t *);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user