summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lottery.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-29 09:30:10 +0100
committerLeah Rowe <leah@libreboot.org>2026-03-29 09:30:10 +0100
commit1539aff30236b0302c92df2c1d2b635d58f08812 (patch)
tree25e7ff178936b8901486419e3c074be15cb60bce /util/libreboot-utils/lottery.c
parentc2a70b7de0e15dc80d5b56d438a6d4ed47647b44 (diff)
lbutils: simplify getprogname usage
the functions no longer return errors, so i don't need to handle them. furthermore, the handling in state.c is redundant, so i've removed that too. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lottery.c')
-rw-r--r--util/libreboot-utils/lottery.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/libreboot-utils/lottery.c b/util/libreboot-utils/lottery.c
index 48565c87..4c7c145a 100644
--- a/util/libreboot-utils/lottery.c
+++ b/util/libreboot-utils/lottery.c
@@ -21,8 +21,7 @@ main(int argc, char **argv)
(void) argc, (void) argv;
(void) errhook(exit_cleanup);
- if (lbsetprogname(argv[0]) == NULL)
- err_exit(errno, "could not set progname");
+ (void) lbsetprogname(argv[0]);
/* https://man.openbsd.org/pledge.2 */
xpledgex("stdio", NULL);