Verified Commit ddb783d4 authored by Rahix's avatar Rahix

fix(config): Fix compiler-warnings

Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent a60cbd75
......@@ -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(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment