mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 00:03:45 +02:00
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:
@@ -62,8 +62,7 @@ main(int argc, char *argv[])
|
||||
int type = MKHTEMP_FILE;
|
||||
|
||||
(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 flock rpath wpath cpath", NULL);
|
||||
|
||||
Reference in New Issue
Block a user