From 7fc3ad43a762da85558923a1c1ef2a4447b825c3 Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 19 Sep 2024 15:16:52 +0000 Subject: [PATCH] format, and fix platform git-svn-id: file:///raid/svn-personal/tewi/trunk@104 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/http.c | 2 +- Server/server.c | 6 +++--- Server/version.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Server/http.c b/Server/http.c index a807459..a63ea67 100644 --- a/Server/http.c +++ b/Server/http.c @@ -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"); diff --git a/Server/server.c b/Server/server.c index b686bd2..34756d6 100644 --- a/Server/server.c +++ b/Server/server.c @@ -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; } } diff --git a/Server/version.c b/Server/version.c index 1685b0d..bd2514d 100644 --- a/Server/version.c +++ b/Server/version.c @@ -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__) -- 2.43.0