From: cheloha Date: Fri, 13 Jan 2023 06:53:04 +0000 (+0000) Subject: timeout(1): sig_atomic_t variables must also be 'volatile'; ok job@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8074af7957c713f8e3a7687b3b1c4a82652bb3d8;p=openbsd timeout(1): sig_atomic_t variables must also be 'volatile'; ok job@ --- diff --git a/usr.bin/timeout/timeout.c b/usr.bin/timeout/timeout.c index e38e66e4850..fb4d9c81970 100644 --- a/usr.bin/timeout/timeout.c +++ b/usr.bin/timeout/timeout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: timeout.c,v 1.24 2023/01/12 14:08:39 jmc Exp $ */ +/* $OpenBSD: timeout.c,v 1.25 2023/01/13 06:53:04 cheloha Exp $ */ /* * Copyright (c) 2021 Job Snijders @@ -46,10 +46,10 @@ #define EXIT_TIMEOUT 124 -static sig_atomic_t sig_chld = 0; -static sig_atomic_t sig_term = 0; -static sig_atomic_t sig_alrm = 0; -static sig_atomic_t sig_ign = 0; +static volatile sig_atomic_t sig_chld = 0; +static volatile sig_atomic_t sig_term = 0; +static volatile sig_atomic_t sig_alrm = 0; +static volatile sig_atomic_t sig_ign = 0; static void __dead usage(void)