commit | 616571804a01f032bc43fa4fdeb42f00cb90513c | [log] [tgz] |
---|---|---|
author | Mark Kettenis <kettenis@openbsd.org> | Tue Apr 26 19:24:38 2022 +0200 |
committer | Tom Rini <trini@konsulko.com> | Thu May 05 19:37:11 2022 -0400 |
tree | a823ce478ea137f7e5f66247ca1f0084ab984cb1 | |
parent | 8b42439ad19f1b3920541c357d5d7e9593adc420 [diff] |
tools: mkimage: Avoid ENODATA in host tools ENODATA isn't part of POSIX. Use EINVAL instead. Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Tom Rini <trini@konsulko.com>
diff --git a/tools/image-host.c b/tools/image-host.c index ab6f756..698adfb 100644 --- a/tools/image-host.c +++ b/tools/image-host.c
@@ -1205,7 +1205,7 @@ if (!key_name) printf("The property key-name is missing in the node %s\n", IMAGE_PRE_LOAD_PATH); - ret = -ENODATA; + ret = -EINVAL; goto out; }