From 5b8a66fc23ad54a680b8bd9a0bb673ab048c365d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 8 Sep 2014 15:10:44 +0200 Subject: never volatile int, always volatile sig_atomic_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-vt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mds-vt.c') diff --git a/src/mds-vt.c b/src/mds-vt.c index aed3805..dd30b46 100644 --- a/src/mds-vt.c +++ b/src/mds-vt.c @@ -97,7 +97,7 @@ static struct stat old_vt_stat; /** * -1 if switching to our VT, 1 if switching to another VT, 0 otherwise */ -static volatile int switching_vt = 0; +static volatile sig_atomic_t switching_vt = 0; /** * The pathname for the file containing VT information -- cgit v1.2.3-70-g09d2