From 2841d94f023882a58df7f522d309eb2b1409e401 Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Fri, 14 Feb 2003 18:18:12 +0000 Subject: [PATCH] fixed compiler warning --- ext/mysqli/mysqli_nonapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c index ff12a92b3a..7ac277b36d 100644 --- a/ext/mysqli/mysqli_nonapi.c +++ b/ext/mysqli/mysqli_nonapi.c @@ -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 */ -- 2.50.1