Skip to contentSkip to conversation

env: correct sign for error code

PATCH New Heinrich Schuchardt 2 participants 2 messages May 8, 2017 – May 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 env: correct sign for error code

Error codes should be negative.

---
 common/env_attr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/env_attr.c +1 -1
index 5bfe5e3a89..386219087b 100644
@@ -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
#1 lore raw

PATCH 1/1 env: correct sign for error code

Quoted 3 lines · xypron.glpk at gmx.de

Error codes should be negative.

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>