From c825a763b12cd4942d810f22826003e7c5976840 Mon Sep 17 00:00:00 2001 From: pooka Date: Mon, 30 Aug 2010 08:30:17 +0000 Subject: [PATCH] Make tcount volatile since a signal handler plays with it. --- tests/dev/sysmon/t_swwdog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dev/sysmon/t_swwdog.c b/tests/dev/sysmon/t_swwdog.c index 9a726c2b0090..2a48f0316952 100644 --- a/tests/dev/sysmon/t_swwdog.c +++ b/tests/dev/sysmon/t_swwdog.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_swwdog.c,v 1.1 2010/08/06 16:13:26 pooka Exp $ */ +/* $NetBSD: t_swwdog.c,v 1.2 2010/08/30 08:30:17 pooka Exp $ */ /* * Copyright (c) 2010 Antti Kantee. All Rights Reserved. @@ -44,7 +44,7 @@ #include "../../h_macros.h" -static sig_atomic_t tcount; +static volatile sig_atomic_t tcount; static void sigcount(int sig)