format, and fix platform

git-svn-id: file:///raid/svn-personal/tewi/trunk@104 8739d7e6-ffea-ec47-b151-bdff447c6205
This commit is contained in:
Nishi 2024-09-19 15:16:52 +00:00
parent 7119126027
commit 7fc3ad43a7
3 changed files with 5 additions and 5 deletions

View File

@ -74,7 +74,7 @@ int tw_http_parse(SSL* ssl, int sock, struct tw_http_request* req) {
#ifdef __HAIKU__
int n = select(32, &fds, NULL, NULL, &tv);
#else
int n = select(FD_SETSIZE, &fds, NULL, NULL, &tv);
int n = select(FD_SETSIZE, &fds, NULL, NULL, &tv);
#endif
if(n <= 0) {
cm_log("HTTP", "Timeout, disconncting");

View File

@ -833,11 +833,11 @@ void tw_server_loop(void) {
if(threads[j].used) {
thread_info info;
bool kill = false;
if(get_thread_info(threads[j].thread, &info) == B_OK){
}else{
if(get_thread_info(threads[j].thread, &info) == B_OK) {
} else {
kill = true;
}
if(kill){
if(kill) {
threads[j].used = false;
}
}

View File

@ -8,7 +8,7 @@ const char* tw_version = TW_VERSION;
const char* tw_platform =
#if defined(PLATFORM)
PLATFORMM
PLATFORM
#elif defined(__NetBSD__)
"NetBSD"
#elif defined(__linux__)