From: cheloha Date: Fri, 13 Jan 2023 07:02:16 +0000 (+0000) Subject: shutdown(8): sig_atomic_t variables should be qualified 'volatile' X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=11ec551f2e08019ec87d569cc4fa02ae76e7935b;p=openbsd shutdown(8): sig_atomic_t variables should be qualified 'volatile' --- diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c index 38b10bb56df..97b55b763bb 100644 --- a/sbin/shutdown/shutdown.c +++ b/sbin/shutdown/shutdown.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shutdown.c,v 1.53 2021/07/12 15:09:19 beck Exp $ */ +/* $OpenBSD: shutdown.c,v 1.54 2023/01/13 07:02:16 cheloha Exp $ */ /* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */ /* @@ -89,7 +89,7 @@ const int tlistlen = sizeof(tlist) / sizeof(tlist[0]); static time_t offset, shuttime; static int dofast, dohalt, doreboot, dopower, dodump, mbuflen, nosync; -static sig_atomic_t killflg, timed_out; +static volatile sig_atomic_t killflg, timed_out; static char *whom, mbuf[BUFSIZ]; void badtime(void);