]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Mark restrict on input too
authorDale Weiler <killfieldengine@gmail.com>
Sat, 23 Nov 2013 12:45:45 +0000 (07:45 -0500)
committerDale Weiler <killfieldengine@gmail.com>
Sat, 23 Nov 2013 12:45:45 +0000 (07:45 -0500)
util.c

diff --git a/util.c b/util.c
index ebfafa10bcbbe558c3d2dc6f2fe73fc3d8ff40c1..251c9d1e384ebc5075702414192cb4348fba240a 100644 (file)
--- a/util.c
+++ b/util.c
@@ -456,7 +456,7 @@ static const uint16_t util_crc16_table[8][256] = {{
 }};
 
 /* Non - Reflected */
-uint16_t util_crc16(uint16_t current, const char *k, size_t len) {
+uint16_t util_crc16(uint16_t current, const char *GMQCC_RESTRICT k, size_t len) {
     register uint16_t h = current;
 
     /* don't load twice */