env: correct sign for error code
PATCH 1/1 env: correct sign for error code
Error codes should be negative.
Signed-off-by Heinrich Schuchardt <[email protected]>
--- common/env_attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/env_attr.c +1 -1
@@ -153,7 +153,7 @@ static int regex_callback(const char *name, const char *attributes, void *priv) } }else {printf ("Error compiling regex: %s\n" , slre.err_str); - retval =EINVAL ; + retval = -EINVAL ; } done:return retval;
Signature · 1 line
2.11.0
PATCH 1/1 env: correct sign for error code
Quoted 3 lines · xypron.glpk at gmx.de
Error codes should be negative.
Signed-off-by Heinrich Schuchardt <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170512/54954d3f/attachment.sig>