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>
This commit is contained in:
Leah Rowe
2026-03-29 09:30:10 +01:00
parent c2a70b7de0
commit 1539aff302
6 changed files with 5 additions and 18 deletions
+1 -2
View File
@@ -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);