X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/fad131f967cbb1ba415fca80e90361e5e9ed7a48..271da7f4e93492f377c0fcf25def4591d60b9fbc:/package/nvram/src/nvram.h?ds=sidebyside diff --git a/package/nvram/src/nvram.h b/package/nvram/src/nvram.h index e3d64613d..c72f67e9a 100644 --- a/package/nvram/src/nvram.h +++ b/package/nvram/src/nvram.h @@ -46,7 +46,8 @@ struct nvram_tuple { struct nvram_handle { int fd; char *mmap; - unsigned long length; + unsigned int length; + unsigned int offset; struct nvram_tuple *nvram_hash[257]; struct nvram_tuple *nvram_dead; }; @@ -113,7 +114,6 @@ char * nvram_find_staging(void); /* NVRAM constants */ #define NVRAM_SPACE 0x8000 -#define NVRAM_START(x) x - NVRAM_SPACE #define NVRAM_MAGIC 0x48534C46 /* 'FLSH' */ #define NVRAM_VERSION 1