From: tb Date: Sun, 18 Dec 2022 00:22:07 +0000 (+0000) Subject: Use volatile sig_atomic_t for flag set in signal handler X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=55d8058ff2af2b7fa843827ce9f54c0233fe6d40;p=openbsd Use volatile sig_atomic_t for flag set in signal handler --- diff --git a/regress/lib/libcrypto/bn/bn_shift.c b/regress/lib/libcrypto/bn/bn_shift.c index f447f7ba51c..5ba5f5403e2 100644 --- a/regress/lib/libcrypto/bn/bn_shift.c +++ b/regress/lib/libcrypto/bn/bn_shift.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_shift.c,v 1.2 2022/12/17 22:30:39 tb Exp $ */ +/* $OpenBSD: bn_shift.c,v 1.3 2022/12/18 00:22:07 tb Exp $ */ /* * Copyright (c) 2022 Joel Sing * @@ -468,7 +468,7 @@ struct benchmark benchmarks[] = { #define N_BENCHMARKS (sizeof(benchmarks) / sizeof(benchmarks[0])) -static int benchmark_stop; +static volatile sig_atomic_t benchmark_stop; static void benchmark_sig_alarm(int sig)