From 4b39cf8ba84dcf864c292fe9b9886678ea79868b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 10 Jan 2022 20:51:13 -0800 Subject: [PATCH] safefile: use a C99 bool for local 'onetime' --- lib/common/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/common/utils.c b/lib/common/utils.c index 1b9d38e15..82d27f122 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -366,7 +366,7 @@ static char* findPath (char** dirs, size_t maxdirlen, const char* str) const char *safefile(const char *filename) { - static boolean onetime = TRUE; + static bool onetime = true; static char *pathlist = NULL; static size_t maxdirlen; static char** dirs; @@ -387,7 +387,7 @@ const char *safefile(const char *filename) "file loading is disabled because the environment contains SERVER_NAME=\"%s\"\n" "and the GV_FILE_PATH variable is unset or empty.\n", HTTPServerEnVar); - onetime = FALSE; + onetime = false; } return NULL; } @@ -408,7 +408,7 @@ const char *safefile(const char *filename) agerr(AGWARN, "Path provided to file: \"%s\" has been ignored" " because files are only permitted to be loaded from the directories in \"%s\"" " when running in an http server.\n", filename, Gvfilepath); - onetime = FALSE; + onetime = false; } return findPath (dirs, maxdirlen, str); -- 2.40.0