Fixed some compiler warnings, added header includes, return values etc.
This commit is contained in:
VilhoRaatikka
2014-05-27 10:08:17 +03:00
parent 7319859a48
commit f9db3bc129
8 changed files with 15 additions and 6 deletions

View File

@ -126,7 +126,7 @@ MYSQL_MONITOR *handle;
handle->defaultPasswd = NULL;
spinlock_init(&handle->lock);
}
handle->tid = thread_start(monitorMain, handle);
handle->tid = (THREAD)thread_start(monitorMain, handle);
return handle;
}
@ -141,7 +141,7 @@ stopMonitor(void *arg)
MYSQL_MONITOR *handle = (MYSQL_MONITOR *)arg;
handle->shutdown = 1;
thread_wait(handle->tid);
thread_wait((void *)handle->tid);
}
/**