]> git.seodisparate.com - c_simple_http/commitdiff
Update globals to use "fast" int type
authorStephen Seo <seo.disparate@gmail.com>
Sat, 21 Sep 2024 03:02:18 +0000 (12:02 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sat, 21 Sep 2024 03:02:18 +0000 (12:02 +0900)
src/globals.c
src/globals.h

index 26483daae14f5d24ee8938cd94e71e7d38725d12..393a4e2166c31321bd6621434886d0540f53c6c6 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "globals.h"
 
-int C_SIMPLE_HTTP_KEEP_RUNNING = 1;
-int C_SIMPLE_HTTP_SIGUSR1_SET = 0;
+int_fast8_t C_SIMPLE_HTTP_KEEP_RUNNING = 1;
+int_fast8_t C_SIMPLE_HTTP_SIGUSR1_SET = 0;
 
 // vim: et ts=2 sts=2 sw=2
index 9ce14ea6f2b89fbeab7885646484edeeb2d57e12..cd8e5d9853d48fdd775be4ae84fcea369cf5f306 100644 (file)
 #ifndef SEODISPARATE_COM_C_SIMPLE_HTTP_GLOBALS_H_
 #define SEODISPARATE_COM_C_SIMPLE_HTTP_GLOBALS_H_
 
-extern int C_SIMPLE_HTTP_KEEP_RUNNING;
-extern int C_SIMPLE_HTTP_SIGUSR1_SET;
+// Standard library includes.
+#include <stdint.h>
+
+extern int_fast8_t C_SIMPLE_HTTP_KEEP_RUNNING;
+extern int_fast8_t C_SIMPLE_HTTP_SIGUSR1_SET;
 
 #endif