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

Windows 64-bit fixes:

changed type of length parameter in mysql_stmt_prepare,
mysql_real_query, mysql_stmt_send_long_data (incl. async _start
functions) from unsigned long to size_t.
Fixed warnings
This commit is contained in:
Georg Richter
2015-11-05 11:52:50 +01:00
parent 2f4061eadc
commit 72f7c4abf5
26 changed files with 87 additions and 89 deletions

View File

@@ -124,7 +124,7 @@ static TRACE_INFO *get_trace_info(unsigned long thread_id)
if (info->thread_id == thread_id)
return info;
else
info= info->next;
info= (TRACE_INFO *)info->next;
}
if (!(info= (TRACE_INFO *)calloc(sizeof(TRACE_INFO), 1)))
@@ -149,7 +149,7 @@ static void delete_trace_info(unsigned long thread_id)
if (last)
last->next= current->next;
else
trace_info= current->next;
trace_info= (TRACE_INFO *)current->next;
if (current->command)
free(current->command);
if (current->db)
@@ -161,7 +161,7 @@ static void delete_trace_info(unsigned long thread_id)
free(current);
}
last= current;
current= current->next;
current= (TRACE_INFO *)current->next;
}
}
@@ -213,7 +213,7 @@ static int trace_deinit()
while(trace_info)
{
printf("Warning: Connection for thread %lu not properly closed\n", trace_info->thread_id);
trace_info= trace_info->next;
trace_info= (TRACE_INFO *)trace_info->next;
}
register_callback(FALSE, trace_callback);
return 0;