From 556a84a46f8838ec6d548356bc721bf03f752436 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Sat, 23 Nov 2013 07:44:34 -0500 Subject: [PATCH] Mark const for better generated code --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 4253bd3..ebfafa1 100644 --- a/util.c +++ b/util.c @@ -460,7 +460,7 @@ uint16_t util_crc16(uint16_t current, const char *k, size_t len) { register uint16_t h = current; /* don't load twice */ - uint8_t *GMQCC_RESTRICT data = (uint8_t *GMQCC_RESTRICT)k; + const uint8_t *GMQCC_RESTRICT data = (const uint8_t *GMQCC_RESTRICT)k; size_t n; /* deal with the first bytes as bytes until we reach an 8 byte boundary */ -- 2.39.2