summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-03 22:27:51 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-03 22:27:51 +0000
commit8f81ed314a83b44734143d387f2ee86212b1be8a (patch)
treeae063d9603490dcd183ffa37e41305ef4aca6f34 /util
parentf93a40ecb6bd5bc6ebfcd9c6bd3c9c4cb5e519ab (diff)
util/nvmutil: don't use err_if in usage
fname isn't set here, and fname is used in err_if Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 65743fe6..3d4e26ca 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -606,7 +606,8 @@ usage(void)
{
const char *util = getnvmprogname();
#ifdef __OpenBSD__
- err_if(pledge("stdio", NULL) == -1);
+ if (pledge("stdio", NULL) == -1)
+ err(ECANCELED, NULL);
#endif
fprintf(stderr,
"Modify Intel GbE NVM images e.g. set MAC\n"