1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fixed function declaration for mysql_error and mysql_info (const char * instead of char *)

This commit is contained in:
Georg Richter
2016-10-06 09:44:57 +02:00
parent 85185da88f
commit 6723c52c46
2 changed files with 4 additions and 4 deletions

View File

@@ -3291,12 +3291,12 @@ uint STDCALL mysql_errno(MYSQL *mysql)
return mysql ? mysql->net.last_errno : 0;
}
char * STDCALL mysql_error(MYSQL *mysql)
const char * STDCALL mysql_error(MYSQL *mysql)
{
return mysql ? (mysql)->net.last_error : (char *)"";
}
char *STDCALL mysql_info(MYSQL *mysql)
const char *STDCALL mysql_info(MYSQL *mysql)
{
return (mysql)->info;
}