summaryrefslogtreecommitdiff
path: root/util/nvmutil/lib/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/nvmutil/lib/state.c')
-rw-r--r--util/nvmutil/lib/state.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/util/nvmutil/lib/state.c b/util/nvmutil/lib/state.c
index f4f83e48..946b8919 100644
--- a/util/nvmutil/lib/state.c
+++ b/util/nvmutil/lib/state.c
@@ -1,5 +1,4 @@
/* SPDX-License-Identifier: MIT
- *
* Copyright (c) 2022-2026 Leah Rowe <leah@libreboot.org>
*
* This tool lets you modify Intel GbE NVM (Gigabit Ethernet
@@ -21,7 +20,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
#include "../include/common.h"
@@ -238,7 +236,7 @@ getnvmprogname(void)
rval = x->argv0;
}
- p = x_c_strrchr(rval, '/');
+ p = strrchr(rval, '/');
if (p)
return p + 1;
@@ -262,13 +260,13 @@ exit_cleanup(void)
f = &x->f;
if (f->gbe_fd > -1) {
- if (x_i_close(f->gbe_fd) == -1)
+ if (close_on_eintr(f->gbe_fd) == -1)
close_err = 1;
f->gbe_fd = -1;
}
if (f->tmp_fd > -1) {
- if (x_i_close(f->tmp_fd) == -1)
+ if (close_on_eintr(f->tmp_fd) == -1)
close_err = 1;
}