c/util: Correcting qualifiers for memory operations
Change-Id: I6cd5d18765f50e1411ea5c5cd269d7f43816bbdc
diff --git a/src/c/util/ndn_memory.c b/src/c/util/ndn_memory.c
index 8051864..a9c3510 100644
--- a/src/c/util/ndn_memory.c
+++ b/src/c/util/ndn_memory.c
@@ -7,7 +7,7 @@
#include "ndn_memory.h"
#if !NDN_CPP_HAVE_MEMCMP
-int ndn_memcmp(uint8_t *buf1, uint8_t *buf2, size_t len)
+int ndn_memcmp(const uint8_t *buf1, const uint8_t *buf2, size_t len)
{
size_t i;
@@ -25,7 +25,7 @@
#endif
#if !NDN_CPP_HAVE_MEMCPY
-void ndn_memcpy(uint8_t *dest, uint8_t *src, size_t len)
+void ndn_memcpy(uint8_t *dest, const uint8_t *src, size_t len)
{
size_t i;