]> Git repositories of Nishi - tewi.git/commitdiff
format, and fix platform
authorNishi <nishi@nishi.boats>
Thu, 19 Sep 2024 15:16:52 +0000 (15:16 +0000)
committerNishi <nishi@nishi.boats>
Thu, 19 Sep 2024 15:16:52 +0000 (15:16 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@104 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/http.c
Server/server.c
Server/version.c

index a80745991bd11b16c0270d14fcaf15d35502de93..a63ea67158149f1640eafe230a4daa3be5c5c923 100644 (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");
index b686bd216bea5804eb2445814fd330fae07c81bb..34756d641ed9e8845a01aa38ed38982efbbacb53 100644 (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;
                                                        }
                                                }
index 1685b0d24a136394cffbe411ab578ab1ce087120..bd2514d7476bbb373fcc4ba052e6e798143c0f91 100644 (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__)