]> Git repositories of Nishi - tewi.git/commitdiff
format the code
authorNishi <nishi@nishi.boats>
Wed, 2 Oct 2024 17:45:40 +0000 (17:45 +0000)
committerNishi <nishi@nishi.boats>
Wed, 2 Oct 2024 17:45:40 +0000 (17:45 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@213 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/http.c
Server/main.c
Server/server.c

index 0f5030f5c16ef1987eb78fce75b2975bc5c9120d..549d842b1a2977985f91f0641fa9d3ffb79d0409 100644 (file)
@@ -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;
                        }
index 97743618679d1b339f8c60fe7592a977076fa54d..52e5617949accc4f69a6b997313b584a92ab8937 100644 (file)
@@ -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);
index 1c2ff9451846c0076a82d513f73c4e3d612a646d..6b464a8dda3df3318fecc17bf3fadcde8a548e46 100644 (file)
@@ -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];