From 55d8058ff2af2b7fa843827ce9f54c0233fe6d40 Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 18 Dec 2022 00:22:07 +0000 Subject: [PATCH] Use volatile sig_atomic_t for flag set in signal handler --- regress/lib/libcrypto/bn/bn_shift.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.20.1