Skip to content

Commit

Permalink
Fixed function declarations for mysql_error and mysql_info (const cha…
Browse files Browse the repository at this point in the history
…r* instead of char *)
  • Loading branch information
9EOR9 committed Oct 6, 2016
1 parent caa245d commit 2e14b0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/mysql.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ my_bool STDCALL mysql_commit(MYSQL *mysql);
my_bool STDCALL mysql_rollback(MYSQL *mysql);
my_ulonglong STDCALL mysql_insert_id(MYSQL *mysql);
unsigned int STDCALL mysql_errno(MYSQL *mysql);
char * STDCALL mysql_error(MYSQL *mysql);
char * STDCALL mysql_info(MYSQL *mysql);
const char * STDCALL mysql_error(MYSQL *mysql);
const char * STDCALL mysql_info(MYSQL *mysql);
unsigned long STDCALL mysql_thread_id(MYSQL *mysql);
const char * STDCALL mysql_character_set_name(MYSQL *mysql);
void STDCALL mysql_get_character_set_info(MYSQL *mysql, MY_CHARSET_INFO *cs);
Expand Down
4 changes: 2 additions & 2 deletions libmariadb/libmariadb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3380,12 +3380,12 @@ uint STDCALL mysql_errno(MYSQL *mysql)
return (mysql)->net.last_errno;
}

char * STDCALL mysql_error(MYSQL *mysql)
const char * STDCALL mysql_error(MYSQL *mysql)
{
return (mysql)->net.last_error;
}

char *STDCALL mysql_info(MYSQL *mysql)
const char *STDCALL mysql_info(MYSQL *mysql)
{
return (mysql)->info;
}
Expand Down

0 comments on commit 2e14b0a

Please sign in to comment.