Skip to content

Commit 9f66347

Browse files
committed
Make buffer parameter const
1 parent 19e7622 commit 9f66347

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/MbedCRC.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class MbedCRC {
146146
* @param crc CRC is the output value
147147
* @return 0 on success, negative error code on failure
148148
*/
149-
int32_t compute(void *buffer, crc_data_size_t size, uint32_t *crc)
149+
int32_t compute(const void *buffer, crc_data_size_t size, uint32_t *crc)
150150
{
151151
MBED_ASSERT(crc != NULL);
152152
int32_t status = 0;
@@ -193,7 +193,7 @@ class MbedCRC {
193193
* @note: CRC as output in compute_partial is not final CRC value, call `compute_partial_stop`
194194
* to get final correct CRC value.
195195
*/
196-
int32_t compute_partial(void *buffer, crc_data_size_t size, uint32_t *crc)
196+
int32_t compute_partial(const void *buffer, crc_data_size_t size, uint32_t *crc)
197197
{
198198
int32_t status = 0;
199199

0 commit comments

Comments
 (0)