summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-12-18 00:22:07 +0000
committertb <>2022-12-18 00:22:07 +0000
commit9a8d30c38d1a72a7788bfd177ca9de16f652ccc0 (patch)
treebe7d869e1f757c24ecd50a7de2c25da2462d6e74 /src
parent58a4748e993c1bcef12712a479da262071e91805 (diff)
downloadopenbsd-9a8d30c38d1a72a7788bfd177ca9de16f652ccc0.tar.gz
openbsd-9a8d30c38d1a72a7788bfd177ca9de16f652ccc0.tar.bz2
openbsd-9a8d30c38d1a72a7788bfd177ca9de16f652ccc0.zip
Use volatile sig_atomic_t for flag set in signal handler
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/bn/bn_shift.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_shift.c b/src/regress/lib/libcrypto/bn/bn_shift.c
index f447f7ba51..5ba5f5403e 100644
--- a/src/regress/lib/libcrypto/bn/bn_shift.c
+++ b/src/regress/lib/libcrypto/bn/bn_shift.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_shift.c,v 1.2 2022/12/17 22:30:39 tb Exp $ */ 1/* $OpenBSD: bn_shift.c,v 1.3 2022/12/18 00:22:07 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2022 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -468,7 +468,7 @@ struct benchmark benchmarks[] = {
468 468
469#define N_BENCHMARKS (sizeof(benchmarks) / sizeof(benchmarks[0])) 469#define N_BENCHMARKS (sizeof(benchmarks) / sizeof(benchmarks[0]))
470 470
471static int benchmark_stop; 471static volatile sig_atomic_t benchmark_stop;
472 472
473static void 473static void
474benchmark_sig_alarm(int sig) 474benchmark_sig_alarm(int sig)