kalle Tue, 05 Oct 2010 09:48:07 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=304071
Log:
Fix constness warnings
Changed paths:
U php/php-src/branches/PHP_5_3/ext/mysql/php_mysql.c
Modified: php/php-src/branches/PHP_5_3/ext/mysql/php_mysql.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/mysql/php_mysql.c 2010-10-05 09:40:36 UTC
(rev 304070)
+++ php/php-src/branches/PHP_5_3/ext/mysql/php_mysql.c 2010-10-05 09:48:07 UTC
(rev 304071)
@@ -2370,8 +2370,8 @@
}
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);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php