Skip to content

Commit

Permalink
mx_mysql: Remove mx_mysql_error()
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Dec 29, 2023
1 parent bf10ab5 commit 4359e40
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions mx_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ char *mx_mysql_error(void) {
return mx_mysql_last_error == NULL ? "no error information" : mx_mysql_last_error;
}

static const char *mx__mysql_error(struct mx_mysql *mysql)
{
assert(mysql);
assert(mysql->mysql);

/* no mysql errors possible */
return mysql_error(mysql->mysql);
}

static int mx__mysql_init(struct mx_mysql *mysql)
{
assert(mysql);
Expand Down Expand Up @@ -688,7 +679,7 @@ static int mx_mysql_real_connect(struct mx_mysql *mysql, const char *host, const
return 0;

if (res == -EALREADY) {
mx_log_debug("WARNING: %s", mx__mysql_error(mysql));
mx_log_debug("WARNING: %s", mysql_error(mysql->mysql));
return 0;
}

Expand Down

0 comments on commit 4359e40

Please sign in to comment.