summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorpp <pp@455248ca-bdda-0310-9134-f4ebb693071a>2005-06-20 18:17:03 +0000
committerpp <pp@455248ca-bdda-0310-9134-f4ebb693071a>2005-06-20 18:17:03 +0000
commitdd9ae8593096d54180956c13b1f293bc3d546634 (patch)
treed7a2ff9eb33d79726784d83a12d2473e3890c318
parente1c263b7a4b60327ea19222d1a2fdc564ff538ce (diff)
- get rid of compilation warnings
git-svn-id: https://siedziba.pl:790/svn/repos/php-imlib/trunk@194 455248ca-bdda-0310-9134-f4ebb693071a
-rw-r--r--filters/php_bumpmap.c4
-rw-r--r--filters/php_colormatrix.c4
-rw-r--r--filters/php_colormod.c2
-rw-r--r--filters/php_hsbcolor.c2
-rw-r--r--filters/php_testfilter.c2
5 files changed, 7 insertions, 7 deletions
diff --git a/filters/php_bumpmap.c b/filters/php_bumpmap.c
index 3813da3..6910f82 100644
--- a/filters/php_bumpmap.c
+++ b/filters/php_bumpmap.c
@@ -70,12 +70,12 @@ _php_bumpmap_exec(char* filter, HashTable* params,int index)
{
char val[32];
zval **data;
- zend_hash_get_current_data_ex(params,&data,&pos);
+ zend_hash_get_current_data_ex(params,(void**)&data,&pos);
switch(paramtypes[index])
{
case 'I':
- im=_php_imlib_get_image(data);
+ im=(Imlib_Image)_php_imlib_get_image(data); /* Why is cast to Imlib_Image needed? */
script=_php_bumpmap_stradd(script,"map=[]");
break;
case 'i':
diff --git a/filters/php_colormatrix.c b/filters/php_colormatrix.c
index 802550c..1cd28b2 100644
--- a/filters/php_colormatrix.c
+++ b/filters/php_colormatrix.c
@@ -286,7 +286,7 @@ static void _php_colormatrix_usermat(double mat[16], zval** data)
{
if ((num_index>=0)&&(num_index<16))
{
- zend_hash_get_current_data_ex(mat_ht,&value,&pos);
+ zend_hash_get_current_data_ex(mat_ht,(void**)&value,&pos);
convert_to_double_ex(value);
mat[num_index]=Z_DVAL_PP(value);
}
@@ -321,7 +321,7 @@ _php_colormatrix_exec(Imlib_Image im, char* filter, HashTable* params)
if (retval==HASH_KEY_IS_STRING)
{
zval **data;
- zend_hash_get_current_data_ex(params,&data,&pos);
+ zend_hash_get_current_data_ex(params,(void**)&data,&pos);
if (!strcmp(str_index,"x")) { convert_to_long_ex(data); x=Z_LVAL_PP(data); };
if (!strcmp(str_index,"y")) { convert_to_long_ex(data); y=Z_LVAL_PP(data); };
diff --git a/filters/php_colormod.c b/filters/php_colormod.c
index b23c51a..c240f1f 100644
--- a/filters/php_colormod.c
+++ b/filters/php_colormod.c
@@ -54,7 +54,7 @@ _php_colormod_exec(HashTable* params)
{
char val[32];
zval **data;
- zend_hash_get_current_data_ex(params,&data,&pos);
+ zend_hash_get_current_data_ex(params,(void**)&data,&pos);
switch(paramtypes[index])
{
diff --git a/filters/php_hsbcolor.c b/filters/php_hsbcolor.c
index a584031..577afc2 100644
--- a/filters/php_hsbcolor.c
+++ b/filters/php_hsbcolor.c
@@ -122,7 +122,7 @@ _php_hsbcolor_exec(Imlib_Image im, HashTable* params)
if (retval==HASH_KEY_IS_STRING)
{
zval **data;
- zend_hash_get_current_data_ex(params,&data,&pos);
+ zend_hash_get_current_data_ex(params,(void*)&data,&pos);
if (!strcmp(str_index,"x")) { convert_to_long_ex(data); x=Z_LVAL_PP(data); };
if (!strcmp(str_index,"y")) { convert_to_long_ex(data); y=Z_LVAL_PP(data); };
diff --git a/filters/php_testfilter.c b/filters/php_testfilter.c
index dc3d8c8..ca844b3 100644
--- a/filters/php_testfilter.c
+++ b/filters/php_testfilter.c
@@ -39,7 +39,7 @@ _php_testfilter_tint(Imlib_Image im, HashTable* params)
if (retval==HASH_KEY_IS_STRING)
{
zval **data;
- zend_hash_get_current_data_ex(params,&data,&pos);
+ zend_hash_get_current_data_ex(params,(void*)&data,&pos);
convert_to_long_ex(data);
if (!strcmp(str_index,"red")) r=Z_LVAL_PP(data);
if (!strcmp(str_index,"blue")) b=Z_LVAL_PP(data);