These globals are accessed in signal handling, so they need to be
volatile.
Resolves https://git.seodisparate.com/stephenseo/c_simple_http/issues/4
#include "globals.h"
-int_fast8_t C_SIMPLE_HTTP_KEEP_RUNNING = 1;
-int_fast8_t C_SIMPLE_HTTP_SIGUSR1_SET = 0;
+volatile int_fast8_t C_SIMPLE_HTTP_KEEP_RUNNING = 1;
+volatile int_fast8_t C_SIMPLE_HTTP_SIGUSR1_SET = 0;
// vim: et ts=2 sts=2 sw=2
// Standard library includes.
#include <stdint.h>
-extern int_fast8_t C_SIMPLE_HTTP_KEEP_RUNNING;
-extern int_fast8_t C_SIMPLE_HTTP_SIGUSR1_SET;
+extern volatile int_fast8_t C_SIMPLE_HTTP_KEEP_RUNNING;
+extern volatile int_fast8_t C_SIMPLE_HTTP_SIGUSR1_SET;
#endif