diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-29 09:30:10 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-29 09:30:10 +0100 |
| commit | 1539aff30236b0302c92df2c1d2b635d58f08812 (patch) | |
| tree | 25e7ff178936b8901486419e3c074be15cb60bce /util/libreboot-utils/lib/state.c | |
| parent | c2a70b7de0e15dc80d5b56d438a6d4ed47647b44 (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/lib/state.c')
| -rw-r--r-- | util/libreboot-utils/lib/state.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/util/libreboot-utils/lib/state.c b/util/libreboot-utils/lib/state.c index a3cd5b1f..bcf2ccbc 100644 --- a/util/libreboot-utils/lib/state.c +++ b/util/libreboot-utils/lib/state.c @@ -77,9 +77,6 @@ xstart(int argc, char *argv[]) /* .f */ {0}, - /* .argv0 (for our getprogname implementation) */ - NULL, - /* ->i (index to cmd[]) */ 0, @@ -103,7 +100,6 @@ xstart(int argc, char *argv[]) us.f.buf = us.f.real_buf; - us.argv0 = argv[0]; us.f.fname = argv[1]; us.f.tmp_fd = -1; |
