summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Ferrara <ircmaxell@gmail.com>2012-06-12 14:09:16 -0400
committerAnthony Ferrara <ircmaxell@gmail.com>2012-06-12 14:09:16 -0400
commit4918acccc6bd23f907b6712bdd04fcd265a411b0 (patch)
treecd12842f5f8b97f65b3dbd8839d508c2709ac864
parent550253f6529bfa56e494505e6517500f98c7223a (diff)
downloadphp-git-4918acccc6bd23f907b6712bdd04fcd265a411b0.tar.gz
refactor away un-necessary casts in hashing routines
-rw-r--r--ext/hash/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/hash/hash.c b/ext/hash/hash.c
index 7f0d36f6ad..71f3753dab 100644
--- a/ext/hash/hash.c
+++ b/ext/hash/hash.c
@@ -222,8 +222,8 @@ static inline void php_hash_hmac_prep_key(unsigned char *K, const php_hash_ops *
if (key_len > ops->block_size) {
/* Reduce the key first */
ops->hash_init(context);
- ops->hash_update(context, (unsigned char *) key, key_len);
- ops->hash_final((unsigned char *) K, context);
+ ops->hash_update(context, key, key_len);
+ ops->hash_final(K, context);
} else {
memcpy(K, key, key_len);
}