diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-29 07:09:06 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-29 07:09:06 +0100 |
| commit | 546565f32103da7fc66ddddeaabe9cbcc30c831a (patch) | |
| tree | 5a5ea8df7ec0898e5a43acfb082859127099b02f /util/libreboot-utils/mkhtemp.c | |
| parent | ab79f2b1135c1828315c1f73f8f25fe1e9486d3c (diff) | |
cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/mkhtemp.c')
| -rw-r--r-- | util/libreboot-utils/mkhtemp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util/libreboot-utils/mkhtemp.c b/util/libreboot-utils/mkhtemp.c index 5be5a38a..04ce1993 100644 --- a/util/libreboot-utils/mkhtemp.c +++ b/util/libreboot-utils/mkhtemp.c @@ -62,8 +62,7 @@ main(int argc, char *argv[]) int type = MKHTEMP_FILE; (void) errhook(exit_cleanup); - - if (lbgetprogname(argv[0]) == NULL) + if (lbsetprogname(argv[0]) == NULL) err_exit(errno, "could not set progname"); /* https://man.openbsd.org/pledge.2 */ @@ -143,7 +142,7 @@ main(int argc, char *argv[]) err_usage: err_exit(EINVAL, - "usage: %s [-d] [-p dir] [template]\n", getnvmprogname()); + "usage: %s [-d] [-p dir] [template]\n", lbgetprogname()); } static void |
