diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2021-01-27 19:38:12 +1100 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2021-02-12 13:46:16 +1100 |
commit | 09b201101478e6e1c858fc4ef4f859d88a2b8a49 (patch) | |
tree | 63901b0e011789804bc781cb87890f2aeb5d6db5 /lib/libnvram/nvram.h | |
parent | 73cb04d7df4eec3ae294e90d85b8b436a9bf1846 (diff) | |
download | SLOF-09b201101478e6e1c858fc4ef4f859d88a2b8a49.zip SLOF-09b201101478e6e1c858fc4ef4f859d88a2b8a49.tar.gz SLOF-09b201101478e6e1c858fc4ef4f859d88a2b8a49.tar.bz2 |
libnvram: Compile with -Wextra
-Wextra enables a bunch of rather useful checks which this fixes.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libnvram/nvram.h')
-rw-r--r-- | lib/libnvram/nvram.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libnvram/nvram.h b/lib/libnvram/nvram.h index 73fe444..c8aad31 100644 --- a/lib/libnvram/nvram.h +++ b/lib/libnvram/nvram.h @@ -47,7 +47,7 @@ nvram_access_proto(uint64_t, qword) /* nvram.c */ -char *get_nvram_buffer(int len); +char *get_nvram_buffer(unsigned len); void free_nvram_buffer(char *buffer); int nvramlog_printf(const char* fmt, ...); partition_t get_partition(unsigned int type, char *name); @@ -67,9 +67,9 @@ void nvram_init(uint32_t store_token, uint32_t fetch_token, unsigned int get_nvram_size(void); /* envvar.c */ -char *nvram_get_env(partition_t part, char *envvar, int evlen); -int nvram_add_env(partition_t part, char *envvar, int evlen, char *value, int vallen); -int nvram_del_env(partition_t part, char *envvar, int evlen); -int nvram_set_env(partition_t part, char *envvar, int evlen, char *val, int vlen); +char *nvram_get_env(partition_t part, char *envvar, unsigned evlen); +int nvram_add_env(partition_t part, char *envvar, unsigned evlen, char *value, unsigned vallen); +int nvram_del_env(partition_t part, char *envvar, unsigned evlen); +int nvram_set_env(partition_t part, char *envvar, unsigned evlen, char *val, unsigned vlen); #endif |