Skip to content

Commit 14cd419

Browse files
committed
add HashTable *args
.. don't know what I'm supposed to do with it, but compiler complains about it missing.
1 parent 187c8e9 commit 14cd419

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ext/hash/hash_blake3.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
#include "blake3/upstream_blake3/c/blake3.h"
44
#include <string.h> // memcpy
55

6-
PHP_HASH_API void PHP_BLAKE3Init(PHP_BLAKE3_CTX *context)
6+
PHP_HASH_API void PHP_BLAKE3Init(PHP_BLAKE3_CTX *context, HashTable *args)
77
{
8+
(void)args; // ¯\_(ツ)_/¯
89
blake3_hasher_init(context);
910
}
1011

ext/hash/php_hash_blake3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//#define PHP_BLAKE3_SPEC "b8b8qb64bbbbb1760"
1313
#define PHP_BLAKE3_SPEC "L8L8Qa64CCCCL8Ca1760"
1414

15-
PHP_HASH_API void PHP_BLAKE3Init(PHP_BLAKE3_CTX *context);
15+
PHP_HASH_API void PHP_BLAKE3Init(PHP_BLAKE3_CTX *context, HashTable *args);
1616
PHP_HASH_API void PHP_BLAKE3Update(PHP_BLAKE3_CTX *context, const unsigned char *input, size_t len);
1717
PHP_HASH_API void PHP_BLAKE3Final(unsigned char digest[BLAKE3_OUT_LEN/*32*/], PHP_BLAKE3_CTX *context);
1818
PHP_HASH_API int PHP_BLAKE3Copy(const php_hash_ops *ops, PHP_BLAKE3_CTX *orig_context, PHP_BLAKE3_CTX *copy_context);

0 commit comments

Comments
 (0)