From: Xinchen Hui Date: Tue, 27 Oct 2015 02:08:27 +0000 (+0800) Subject: It should not be const X-Git-Tag: php-7.1.0alpha1~898 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c1d0946f431f8d5895a358efe39cca401e883f1;p=php It should not be const --- diff --git a/ext/hash/hash_sha3.c b/ext/hash/hash_sha3.c index 0ff73e59c2..a1d48390b6 100644 --- a/ext/hash/hash_sha3.c +++ b/ext/hash/hash_sha3.c @@ -46,14 +46,14 @@ static inline php_hash_uint64 load64(const unsigned char* x) { } return ret; } -static inline void store64(const unsigned char* x, php_hash_uint64 val) { +static inline void store64(unsigned char* x, php_hash_uint64 val) { unsigned char i; for (i = 0; i < 8; ++i) { x[i] = val & 0xFF; val >>= 8; } } -static inline void xor64(const unsigned char* x, php_hash_uint64 val) { +static inline void xor64(unsigned char* x, php_hash_uint64 val) { unsigned char i; for (i = 0; i < 8; ++i) { x[i] ^= val & 0xFF; @@ -132,7 +132,7 @@ static void permute(PHP_SHA3_CTX* ctx) { } { // i step (see [Keccak Reference, Section 2.3.5]) - unsigned char j; + unsigned char j; for (j = 0; j < 7; ++j) { if (LFSR86540(&LFSRstate)) { php_hash_uint64 bitPos = (1<