From ddb783d40791d4e8f8606eedc9c9e38a90013e90 Mon Sep 17 00:00:00 2001
From: Rahix <rahix@rahix.de>
Date: Sat, 31 Aug 2019 11:40:59 +0200
Subject: [PATCH] fix(config): Fix compiler-warnings

Signed-off-by: Rahix <rahix@rahix.de>
---
 epicardium/modules/config.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/epicardium/modules/config.c b/epicardium/modules/config.c
index a209550c..18e800c3 100644
--- a/epicardium/modules/config.c
+++ b/epicardium/modules/config.c
@@ -175,7 +175,7 @@ static void configure(const char *key, const char *value, int lineNumber)
 static void doline(char *line, char *eol, int lineNumber)
 {
 	//skip leading whitespace
-	while (*line && isspace(*line))
+	while (*line && isspace((int)*line))
 		++line;
 
 	char *key = line;
@@ -199,7 +199,7 @@ static void doline(char *line, char *eol, int lineNumber)
 
 	char *e_key = eq - 1;
 	//skip trailing whitespace in key
-	while (e_key > key && isspace(*e_key))
+	while (e_key > key && isspace((int)*e_key))
 		--e_key;
 	e_key[1] = '\0';
 	if (*key == '\0') {
@@ -209,12 +209,12 @@ static void doline(char *line, char *eol, int lineNumber)
 
 	char *value = eq + 1;
 	//skip leading whitespace
-	while (*value && isspace(*value))
+	while (*value && isspace((int)*value))
 		++value;
 
 	char *e_val = eol - 1;
 	//skip trailing whitespace
-	while (e_val > value && isspace(*e_val))
+	while (e_val > value && isspace((int)*e_val))
 		--e_val;
 	if (*value == '\0') {
 		LOG_WARN(
-- 
GitLab