Skip to content
Snippets Groups Projects
Commit 9b57e252 authored by xypron.glpk@gmx.de's avatar xypron.glpk@gmx.de Committed by Tom Rini
Browse files

env: correct sign for error code


Error codes should be negative.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 878d8856
No related branches found
No related tags found
No related merge requests found
...@@ -153,7 +153,7 @@ static int regex_callback(const char *name, const char *attributes, void *priv) ...@@ -153,7 +153,7 @@ static int regex_callback(const char *name, const char *attributes, void *priv)
} }
} else { } else {
printf("Error compiling regex: %s\n", slre.err_str); printf("Error compiling regex: %s\n", slre.err_str);
retval = EINVAL; retval = -EINVAL;
} }
done: done:
return retval; return retval;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment