summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-03-30 19:39:19 -0600
committerEvan Lojewski <github@meklort.com>2019-03-30 19:39:19 -0600
commit19e6e985cb9fb33f6067d13acd03e7d9ea41ee33 (patch)
tree227c28f3605795a6e5b3f0bc90430b26b93bafe5 /libs
parentc3cfe26450bd741e6a01c767ccce54ea02a1a1ea (diff)
downloadbcm5719-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.c2
-rw-r--r--libs/NVRam/include/NVRam.h2
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
OpenPOWER on IntegriCloud