From 571b0f855cc73232e1d677ec9ab28252d24d2548 Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 2 Oct 2024 17:45:40 +0000 Subject: [PATCH] format the code git-svn-id: file:///raid/svn-personal/tewi/trunk@213 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/http.c | 10 +++++----- Server/main.c | 2 +- Server/server.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Server/http.c b/Server/http.c index 0f5030f..549d842 100644 --- a/Server/http.c +++ b/Server/http.c @@ -82,7 +82,7 @@ int tw_http_parse(SSL* ssl, int sock, struct tw_http_request* req) { while(1) { int i; int len; - int n; + int n; #ifndef USE_POLL struct timeval tv; FD_ZERO(&fds); @@ -343,7 +343,7 @@ getout: } free(req->path); req->path = result; - + incr = 0; p = malloc(1); p[0] = 0; @@ -353,9 +353,9 @@ getout: char* pth; cbuf[0] = oldc; req->path[j] = 0; - + pth = req->path + incr; - + if(strcmp(pth, "..") == 0) { int k; if(p[strlen(p) - 1] == '/') p[strlen(p) - 1] = 0; @@ -375,7 +375,7 @@ getout: p = cm_strcat3(tmp, pth, cbuf); free(tmp); } - + incr = j + 1; if(oldc == 0) break; } diff --git a/Server/main.c b/Server/main.c index 9774361..52e5617 100644 --- a/Server/main.c +++ b/Server/main.c @@ -62,7 +62,7 @@ PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER); #define printf(...) tt_printf(__VA_ARGS__) #define STDERR_LOG(...) tt_printf(__VA_ARGS__) #elif defined(_MSC_VER) -void STDERR_LOG(const char* format, ...){ +void STDERR_LOG(const char* format, ...) { va_list args; va_start(args, format); vfprintf(stderr, format, args); diff --git a/Server/server.c b/Server/server.c index 1c2ff94..6b464a8 100644 --- a/Server/server.c +++ b/Server/server.c @@ -913,8 +913,8 @@ extern int running; void tw_server_loop(void) { int i; #ifndef USE_POLL - fd_set fdset; - struct timeval tv; + fd_set fdset; + struct timeval tv; #endif #if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER) struct thread_entry threads[2048]; -- 2.43.0