summaryrefslogtreecommitdiff
path: root/ext/hash/php_hash_md.h
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2018-10-03 11:32:57 +0200
committerKalle Sommer Nielsen <kalle@php.net>2018-10-03 11:32:57 +0200
commit84b0d0fabaaf21ee056984a33b573121296af942 (patch)
tree544b84cc972486b034c8d7b08be5a919c963604b /ext/hash/php_hash_md.h
parentf7991ca656bd5a08d37095a7c18159865a885a64 (diff)
downloadphp-git-84b0d0fabaaf21ee056984a33b573121296af942.tar.gz
Second round of fixing compiler warnings in ext/hash. Lots of the signatures that previously was unsigned int is now size_t, there was a fair bit of inconsistency there already and this commit should make it all sync nicely
Diffstat (limited to 'ext/hash/php_hash_md.h')
-rw-r--r--ext/hash/php_hash_md.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/hash/php_hash_md.h b/ext/hash/php_hash_md.h
index 819f507ab6..7fe170aabc 100644
--- a/ext/hash/php_hash_md.h
+++ b/ext/hash/php_hash_md.h
@@ -65,7 +65,7 @@ typedef struct {
PHP_HASH_API void make_digest(char *md5str, unsigned char *digest);
PHP_HASH_API void PHP_MD5Init(PHP_MD5_CTX *);
-PHP_HASH_API void PHP_MD5Update(PHP_MD5_CTX *, const unsigned char *, unsigned int);
+PHP_HASH_API void PHP_MD5Update(PHP_MD5_CTX *, const unsigned char *, size_t);
PHP_HASH_API void PHP_MD5Final(unsigned char[16], PHP_MD5_CTX *);
PHP_NAMED_FUNCTION(php_if_md5);
@@ -80,7 +80,7 @@ typedef struct {
} PHP_MD4_CTX;
PHP_HASH_API void PHP_MD4Init(PHP_MD4_CTX *);
-PHP_HASH_API void PHP_MD4Update(PHP_MD4_CTX *context, const unsigned char *, unsigned int);
+PHP_HASH_API void PHP_MD4Update(PHP_MD4_CTX *context, const unsigned char *, size_t);
PHP_HASH_API void PHP_MD4Final(unsigned char[16], PHP_MD4_CTX *);
/* MD2 context */
@@ -92,7 +92,7 @@ typedef struct {
} PHP_MD2_CTX;
PHP_HASH_API void PHP_MD2Init(PHP_MD2_CTX *context);
-PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *, unsigned int);
+PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *, size_t);
PHP_HASH_API void PHP_MD2Final(unsigned char[16], PHP_MD2_CTX *);
#endif