diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-18 07:17:40 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-18 07:17:40 +0000 |
| commit | 722ed03179ec43d7b71f927f1a53579ccf5ebff8 (patch) | |
| tree | ef6d5e8edac5583f2f00715bcc1c7a5276ac8ae0 /util/nvmutil/nvmutil.h | |
| parent | 5c51352cf79fab28df35440c61c0c4099659077b (diff) | |
util/nvmutil: remove global variable x
make a singleton function instead
now there are technically no global variables,
so i can more easily start splitting this up
into multiple linked programs
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.h')
| -rw-r--r-- | util/nvmutil/nvmutil.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util/nvmutil/nvmutil.h b/util/nvmutil/nvmutil.h index 4d8c3ab2..a5d5e98f 100644 --- a/util/nvmutil/nvmutil.h +++ b/util/nvmutil/nvmutil.h @@ -289,7 +289,7 @@ struct xfile { /* * BE CAREFUL when editing this * to ensure that you also update - * the tables in new_xstate() + * the tables in xstatus() */ struct xstate { struct commands cmd[7]; @@ -313,7 +313,7 @@ struct xstate { -static struct xstate *new_xstate(void); +static struct xstate *xstatus(void); /* * Sanitize command tables. @@ -437,7 +437,6 @@ off_t gbe_x_offset(unsigned long part, const char *f_op, const char *d_type, off_t nsize, off_t ncmp); long rw_gbe_file_exact(int fd, unsigned char *mem, unsigned long nrw, off_t off, int rw_type); -void check_null_command(const char *c); long rw_file_exact(int fd, unsigned char *mem, unsigned long len, off_t off, int rw_type, int loop_eagain, int loop_eintr, unsigned long max_retries, int off_reset); |
