Commit ebfd891c authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add const declaration to checksum input parameters.

parent 04e48b85
......@@ -11,7 +11,7 @@
#include "error.h"
#include "serialize.h"
uint32_t cdiCheckSum(int type, int count, void *buffer)
uint32_t cdiCheckSum(int type, int count, const void *buffer)
{
uint32_t s = 0U;
xassert(count >= 0);
......
......@@ -3,6 +3,6 @@
#include <inttypes.h>
uint32_t cdiCheckSum(int type, int count, void *data);
uint32_t cdiCheckSum(int type, int count, const void *data);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment