commit | d4ba0b4a099efbe26a75019851d4b3cee983f107 | [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 | 9b361884850d3f3277ecaaf04310ab346611428a [diff] [blame] |
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; }