From 6be820495d70e6f10a92fbdaf6a1e4a278b02ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 17 Oct 2014 15:41:30 +0200 Subject: Make running flag volatile --- vis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vis.c b/vis.c index 53a7dbd..9054ccc 100644 --- a/vis.c +++ b/vis.c @@ -146,7 +146,7 @@ typedef struct { /* command definitions for the ':'-prom } Command; /** global variables */ -static bool running = true; /* exit main loop once this becomes false */ +static volatile bool running = true; /* exit main loop once this becomes false */ static Editor *vis; /* global editor instance, keeps track of all windows etc. */ static Mode *mode; /* currently active mode, used to search for keybindings */ static Mode *mode_prev; /* mode which was active previously */ -- cgit v1.2.3