X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FmysqlConn.c;h=3e5dd19dfac03a156ede2bb49a30bfb26f83b5a7;hb=2b9e305af713f0960ac0cd7645af3e0ef85a8515;hp=5fc14e935828d300b3d906fc559efc1b6bdb11a6;hpb=71424ec1a4cf4138577b00ed417993f69dfc8936;p=NeonServV5.git diff --git a/src/mysqlConn.c b/src/mysqlConn.c index 5fc14e9..3e5dd19 100644 --- a/src/mysqlConn.c +++ b/src/mysqlConn.c @@ -16,10 +16,10 @@ */ #include "mysqlConn.h" -#define DATABASE_VERSION "14" +#define DATABASE_VERSION "15" struct mysql_conn_struct { - unsigned long tid; + unsigned int tid; MYSQL *mysql_conn; struct used_result *used_results; struct escaped_string *escaped_strings; @@ -264,9 +264,9 @@ char* escape_string(const char *str) { struct mysql_conn_struct *get_mysql_conn_struct() { SYNCHRONIZE(synchronized); struct mysql_conn_struct *mysql_conn; - unsigned long tid; + unsigned int tid; #ifdef HAVE_THREADS - tid = syscall(SYS_gettid); + tid = (unsigned int) pthread_self_tid(); #else tid = 1; #endif