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

Fixed compiler warnings

This commit is contained in:
holzboote@googlemail.com
2013-07-01 05:27:17 +02:00
parent dc16f2d32e
commit 7fd247bb3b
8 changed files with 19 additions and 18 deletions

View File

@@ -495,7 +495,7 @@ static int test_reconnect_maxpackage(MYSQL *my)
res= mysql_store_result(mysql);
row= mysql_fetch_row(res);
max_packet= atol(row[0]);
diag("max_allowed_packet=%d", max_packet);
diag("max_allowed_packet=%lu", max_packet);
mysql_free_result(res);
query= (char *)malloc(max_packet + 30);
@@ -522,7 +522,7 @@ static int test_reconnect_maxpackage(MYSQL *my)
res= mysql_store_result(mysql);
row= mysql_fetch_row(res);
max_packet= atol(row[0]);
diag("max_allowed_packet=%d", max_packet);
diag("max_allowed_packet=%lu", max_packet);
mysql_free_result(res);
@@ -535,7 +535,6 @@ static int test_compressed(MYSQL *my)
int rc;
MYSQL *mysql= mysql_init(NULL);
MYSQL_RES *res;
char *query;
mysql_options(mysql, MYSQL_OPT_COMPRESS, (void *)1);
FAIL_IF(!mysql_real_connect(mysql, hostname, username, password, schema,