summaryrefslogtreecommitdiff
path: root/src/lib/compute_ip_checksum.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/compute_ip_checksum.c')
-rw-r--r--src/lib/compute_ip_checksum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/compute_ip_checksum.c b/src/lib/compute_ip_checksum.c
index 58a6bf1ee4..347b83f220 100644
--- a/src/lib/compute_ip_checksum.c
+++ b/src/lib/compute_ip_checksum.c
@@ -1,9 +1,9 @@
#include <stdint.h>
#include <ip_checksum.h>
-unsigned long compute_ip_checksum(void *addr, unsigned long length)
+unsigned long compute_ip_checksum(const void *addr, unsigned long length)
{
- uint8_t *ptr;
+ const uint8_t *ptr;
volatile union {
uint8_t byte[2];
uint16_t word;