summaryrefslogtreecommitdiff
path: root/ext/mhash
diff options
context:
space:
mode:
authorDavid Hill <ddhill@php.net>2003-03-06 23:07:28 +0000
committerDavid Hill <ddhill@php.net>2003-03-06 23:07:28 +0000
commit5c90216d2ce8d8cc8d1453eee1a1e5099bd46631 (patch)
tree588ccc95099ca43c0bf46f8078fcb77fefa2f765 /ext/mhash
parent0338111950edcec427cfa2f1610dd6efcd43a14c (diff)
downloadphp-git-5c90216d2ce8d8cc8d1453eee1a1e5099bd46631.tar.gz
64-bit correction to variables passed to zend_parse_parameters
@64-bit correction to variables passed to zend_parse_parameters (Dave)
Diffstat (limited to 'ext/mhash')
-rw-r--r--ext/mhash/mhash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mhash/mhash.c b/ext/mhash/mhash.c
index a164a5c46d..12b135b5e4 100644
--- a/ext/mhash/mhash.c
+++ b/ext/mhash/mhash.c
@@ -107,7 +107,7 @@ PHP_FUNCTION(mhash_count)
Gets the block size of hash */
PHP_FUNCTION(mhash_get_block_size)
{
- int hash;
+ long hash;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &hash) == FAILURE) {
WRONG_PARAM_COUNT;
@@ -123,7 +123,7 @@ PHP_FUNCTION(mhash_get_block_size)
PHP_FUNCTION(mhash_get_hash_name)
{
char *name;
- int hash;
+ long hash;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &hash) == FAILURE) {
WRONG_PARAM_COUNT;
@@ -147,7 +147,7 @@ PHP_FUNCTION(mhash)
MHASH td;
int bsize;
unsigned char *hash_data;
- int hash;
+ long hash;
int data_len, key_len=0;
char *data, *key=NULL;
@@ -196,7 +196,7 @@ PHP_FUNCTION(mhash_keygen_s2k)
{
KEYGEN keystruct;
char salt[SALT_SIZE], *ret;
- int hash, bytes;
+ long hash, bytes;
char *password, *in_salt;
int password_len, salt_len;