summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/nvmutil/nvmutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 9d2c860c..c0873a25 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -376,7 +376,7 @@ xpledge(const char *promises, const char *execpromises)
(void)promises; (void)execpromises;
#ifdef __OpenBSD__
if (pledge(promises, execpromises) == -1)
- err(ERR(), NULL);
+ err(ERR(), "pledge");
#endif
}
@@ -386,7 +386,7 @@ xunveil(const char *path, const char *permissions)
(void)path; (void)permissions;
#ifdef __OpenBSD__
if (unveil(path, permissions) == -1)
- err(ERR(), NULL);
+ err(ERR(), "unveil");
#endif
}