From bafc47fd575bb7878214deda3730efcb6c755770 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 4 Dec 2018 21:34:14 +0100 Subject: Declare sig_exit as volatile sig_exit may be changed by a signal handler, so its value should always be read from RAM. --- src/filelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/filelist.c') diff --git a/src/filelist.c b/src/filelist.c index 3f3c96d..6f4f6df 100644 --- a/src/filelist.c +++ b/src/filelist.c @@ -30,6 +30,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "feh.h" #include "filelist.h" +#include "signals.h" #include "options.h" gib_list *filelist = NULL; @@ -37,7 +38,6 @@ gib_list *original_file_items = NULL; /* original file items from argv */ int filelist_len = 0; gib_list *current_file = NULL; extern int errno; -extern int sig_exit; /* exit flag from signal handler */ static gib_list *rm_filelist = NULL; -- cgit v1.2.3