diff options
author | Evan Lojewski <github@meklort.com> | 2019-03-30 19:39:19 -0600 |
---|---|---|
committer | Evan Lojewski <github@meklort.com> | 2019-03-30 19:39:19 -0600 |
commit | 19e6e985cb9fb33f6067d13acd03e7d9ea41ee33 (patch) | |
tree | 227c28f3605795a6e5b3f0bc90430b26b93bafe5 /libs | |
parent | c3cfe26450bd741e6a01c767ccce54ea02a1a1ea (diff) | |
download | bcm5719-ortega-19e6e985cb9fb33f6067d13acd03e7d9ea41ee33.tar.gz bcm5719-ortega-19e6e985cb9fb33f6067d13acd03e7d9ea41ee33.zip |
nvram: Fix prototype for NVRam_crc to mark input buffer as constant.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/NVRam/crc.c | 2 | ||||
-rw-r--r-- | libs/NVRam/include/NVRam.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/NVRam/crc.c b/libs/NVRam/crc.c index b2d8f73..dc1d560 100644 --- a/libs/NVRam/crc.c +++ b/libs/NVRam/crc.c @@ -46,7 +46,7 @@ #define CRC32_POLYNOMIAL 0xEDB88320 -uint32_t NVRam_crc(uint8_t *pcDatabuf, // Pointer to data buffer +uint32_t NVRam_crc(const uint8_t *pcDatabuf, // Pointer to data buffer uint32_t ulDatalen, // Length of data buffer in bytes uint32_t crc) // Initial value { diff --git a/libs/NVRam/include/NVRam.h b/libs/NVRam/include/NVRam.h index a3d5378..405f6e9 100644 --- a/libs/NVRam/include/NVRam.h +++ b/libs/NVRam/include/NVRam.h @@ -62,7 +62,7 @@ void NVRam_enableWrites(void); void NVRam_disable(void); void NVRam_disableWrites(void); -uint32_t NVRam_crc(uint8_t *pcDatabuf, // Pointer to data buffer +uint32_t NVRam_crc(const uint8_t *pcDatabuf, // Pointer to data buffer uint32_t ulDatalen, // Length of data buffer in bytes uint32_t crc); // Initial value |