]> granicus.if.org Git - php/commitdiff
fixed compiler warning
authorGeorg Richter <georg@php.net>
Fri, 14 Feb 2003 18:18:12 +0000 (18:18 +0000)
committerGeorg Richter <georg@php.net>
Fri, 14 Feb 2003 18:18:12 +0000 (18:18 +0000)
ext/mysqli/mysqli_nonapi.c

index ff12a92b3a33335208bbd0f26713bb5dd01d2d04..7ac277b36d80816b2adfb340e3ceb5951f7c2ad5 100644 (file)
@@ -60,7 +60,7 @@ PHP_FUNCTION(mysqli_connect)
 
        if (mysql_real_connect(mysql,hostname,username,passwd,dbname,port,socket,0) == NULL) {
                /* Save error messages */
-               php_mysqli_set_error(mysql_errno(mysql), mysql_error(mysql) TSRMLS_CC);
+               php_mysqli_set_error(mysql_errno(mysql), (char *mysql_error(mysql) TSRMLS_CC);
 
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", mysql_error(mysql));
                /* free mysql structure */