diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-04-24 23:38:45 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-04-24 23:38:45 +0000 |
commit | a8da3a09a3fb34327cf02306726dad640e309f20 (patch) | |
tree | 313a27bd4a35051dc25ef2c004f3a07212023d9e /contrib/userspace-nvram/crc.c | |
parent | 18193fa5e9790e5c48ac42bb99f7477be2aed7f9 (diff) |
contrib/userspace-nvram:
- fix checksum calculation
- better handle invalid cli invokation
- get rid of hard coded erase size
- fix data type of crc8 function
Diffstat (limited to 'contrib/userspace-nvram/crc.c')
-rw-r--r-- | contrib/userspace-nvram/crc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/userspace-nvram/crc.c b/contrib/userspace-nvram/crc.c index 22a36652aa..454a5a682f 100644 --- a/contrib/userspace-nvram/crc.c +++ b/contrib/userspace-nvram/crc.c @@ -58,7 +58,7 @@ static const uint8_t crc8_table[256] = { }; uint8_t hndcrc8 ( - uint8_t * pdata, /* pointer to array of data to process */ + const char * pdata, /* pointer to array of data to process */ uint32_t nbytes, /* number of input data bytes to process */ uint8_t crc /* either CRC8_INIT_VALUE or previous return value */ ) { |