From 56ab5a18fee5257c3c875f2b8597b8379c7b959c Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 24 Mar 2026 16:35:40 +0000 Subject: mkhtemp: show progname on error i have my own getprogname implementation, because not every libc is good enough to include one. Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/state.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'util/libreboot-utils/lib/state.c') diff --git a/util/libreboot-utils/lib/state.c b/util/libreboot-utils/lib/state.c index c2040144..2fc22d52 100644 --- a/util/libreboot-utils/lib/state.c +++ b/util/libreboot-utils/lib/state.c @@ -164,32 +164,6 @@ err(int nvm_errval, const char *msg, ...) exit(EXIT_FAILURE); } -const char * -getnvmprogname(void) -{ - struct xstate *x = xstatus(); - - const char *p; - static char fallback[] = "nvmutil"; - - char *rval = fallback; - - if (x != NULL) { - - if (x->argv0 != NULL && *x->argv0 != '\0') - rval = x->argv0; - else - return fallback; - } - - p = strrchr(rval, '/'); - - if (p) - return p + 1; - else - return rval; -} - int exit_cleanup(void) { -- cgit v1.2.1