diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2010-10-05 09:48:07 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2010-10-05 09:48:07 +0000 |
commit | efe22e3bfa98082d12abb46473918670a8b8e799 (patch) | |
tree | b834d19a2a5c4dde1c57bcabc9e32f0cdca4cbbc /ext/mysql/php_mysql.c | |
parent | 87edd143edef1ad072550d609c1427ad2c835a86 (diff) | |
download | php-git-efe22e3bfa98082d12abb46473918670a8b8e799.tar.gz |
Fix constness warnings
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r-- | ext/mysql/php_mysql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index e2531ed308..177a896a4a 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -2370,8 +2370,8 @@ PHP_FUNCTION(mysql_fetch_field) } object_init(return_value); - add_property_string(return_value, "name",(mysql_field->name?mysql_field->name:""), 1); - add_property_string(return_value, "table",(mysql_field->table?mysql_field->table:""), 1); + add_property_string(return_value, "name", (char *) (mysql_field->name?mysql_field->name:""), 1); + add_property_string(return_value, "table",(char *) (mysql_field->table?mysql_field->table:""), 1); add_property_string(return_value, "def",(mysql_field->def?mysql_field->def:""), 1); add_property_long(return_value, "max_length", mysql_field->max_length); add_property_long(return_value, "not_null", IS_NOT_NULL(mysql_field->flags)?1:0); |