com php-src: It should not be const: ext/hash/hash_sha3.c
| From: | Xinchen Hui | Date: | Tue, 27 Oct 2015 02:08:27 +0000 |
| Subject: | com php-src: It should not be const: ext/hash/hash_sha3.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89535@lists.php.net to get a copy of this message | ||
Commit: 9c1d0946f431f8d5895a358efe39cca401e883f1
Author: Xinchen Hui <laruence@gmail.com> Tue, 27 Oct 2015 10:08:27 +0800
Parents: 69beb29e158a5658217a591c64cbb05f96df1d0c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9c1d0946f431f8d5895a358efe39cca401e883f1
Log:
It should not be const
Changed paths:
M ext/hash/hash_sha3.c
Diff:
diff --git a/ext/hash/hash_sha3.c b/ext/hash/hash_sha3.c
index 0ff73e5..a1d4839 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<<j) - 1;