]> Nishi Git Mirror - mandshurica.git/commitdiff
replace
authornishi <nishi@f982e544-4a7d-3444-ad1a-fde59a2a69f1>
Sun, 14 Apr 2024 02:51:30 +0000 (02:51 +0000)
committernishi <nishi@f982e544-4a7d-3444-ad1a-fde59a2a69f1>
Sun, 14 Apr 2024 02:51:30 +0000 (02:51 +0000)
git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@22 f982e544-4a7d-3444-ad1a-fde59a2a69f1

Mandshurica/config.c
Mandshurica/log.c
Mandshurica/main.c
Mandshurica/mandshurica.h
Mandshurica/ms_config.h
Mandshurica/ms_log.h
Mandshurica/ms_util.h
Mandshurica/util.c
Module/http.c
Module/subversion.c
Module/syslog.c

index 4f6a24bbb7498a9fdd40dc5238118be33395fa67..32e76c4d1c36878fb74e35d0cd4db3e4c07f8ecd 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$ */
 /* --- START LICENSE --- */
 /* -------------------------------------------------------------------------- */
-/*                                               Mandshurica - Build Automation  */
+/*                                            Mandshurica - Build Automation  */
 /* -------------------------------------------------------------------------- */
 /* Copyright (c) 2024 Nishi.                                                  */
 /* Redistribution and use in source and binary forms, with or without modific */
index cf80584efd8d3553bd9d5c5de87c66f538208030..b465a5920ef3c9b32e0dcb486fb111b422a7a7ba 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$ */
 /* --- START LICENSE --- */
 /* -------------------------------------------------------------------------- */
-/*                                               Mandshurica - Build Automation  */
+/*                                            Mandshurica - Build Automation  */
 /* -------------------------------------------------------------------------- */
 /* Copyright (c) 2024 Nishi.                                                  */
 /* Redistribution and use in source and binary forms, with or without modific */
index 9b215d6d4ec8a2574881194672c941489eee29cc..e5b1198587be25502e658a7053d1243414320ab4 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$ */
 /* --- START LICENSE --- */
 /* -------------------------------------------------------------------------- */
-/*                                               Mandshurica - Build Automation  */
+/*                                            Mandshurica - Build Automation  */
 /* -------------------------------------------------------------------------- */
 /* Copyright (c) 2024 Nishi.                                                  */
 /* Redistribution and use in source and binary forms, with or without modific */
index 820971a381d4c80f3394b8b233ab389e1aca204e..8c14c50d7257db5dbb3b54497cd03cc3b191d779 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$ */
 /* --- START LICENSE --- */
 /* -------------------------------------------------------------------------- */
-/*                                               Mandshurica - Build Automation  */
+/*                                            Mandshurica - Build Automation  */
 /* -------------------------------------------------------------------------- */
 /* Copyright (c) 2024 Nishi.                                                  */
 /* Redistribution and use in source and binary forms, with or without modific */
index ddc9e5f641811ee7753a390f38490057c1b9be77..e8ce1d2066dd622cf2201da4a89ab4b14958d007 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$ */
 /* --- START LICENSE --- */
 /* -------------------------------------------------------------------------- */
-/*                                               Mandshurica - Build Automation  */
+/*                                            Mandshurica - Build Automation  */
 /* -------------------------------------------------------------------------- */
 /* Copyright (c) 2024 Nishi.                                                  */
 /* Redistribution and use in source and binary forms, with or without modific */
index 7de8aa852563d28adf75b2ba85b5f81bc6aa061f..6efef89fc5a671833faf6473ef4f5ac4a59d9ee1 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$ */
 /* --- START LICENSE --- */
 /* -------------------------------------------------------------------------- */
-/*                                               Mandshurica - Build Automation  */
+/*                                            Mandshurica - Build Automation  */
 /* -------------------------------------------------------------------------- */
 /* Copyright (c) 2024 Nishi.                                                  */
 /* Redistribution and use in source and binary forms, with or without modific */
index 2178e72b084283c6d150043f217365e1db303ee9..808efebeced4191dd8dfb770b075976b668a3c08 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$ */
 /* --- START LICENSE --- */
 /* -------------------------------------------------------------------------- */
-/*                                               Mandshurica - Build Automation  */
+/*                                            Mandshurica - Build Automation  */
 /* -------------------------------------------------------------------------- */
 /* Copyright (c) 2024 Nishi.                                                  */
 /* Redistribution and use in source and binary forms, with or without modific */
index 41f272017f6242faab1ff1999c58232ccfd2222d..63321fbb5441205a2006e13beb10679639b7c5db 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$ */
 /* --- START LICENSE --- */
 /* -------------------------------------------------------------------------- */
-/*                                               Mandshurica - Build Automation  */
+/*                                            Mandshurica - Build Automation  */
 /* -------------------------------------------------------------------------- */
 /* Copyright (c) 2024 Nishi.                                                  */
 /* Redistribution and use in source and binary forms, with or without modific */
 
 #include "ms_util.h"
 
+#include <ctype.h>
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
-#include <ctype.h>
 
 char* mandshurica_strcat(const char* str1, const char* str2) {
        char* str = malloc(strlen(str1) + strlen(str2) + 1);
@@ -60,7 +60,7 @@ char* mandshurica_strdup(const char* str) {
 bool mandshurica_strequ(const char* str1, const char* str2) {
        if(strlen(str1) != strlen(str2)) return false;
        int i;
-       for(i = 0; str1[i] != 0; i++){
+       for(i = 0; str1[i] != 0; i++) {
                if(str1[i] != str2[i]) return false;
        }
        return true;
@@ -69,7 +69,7 @@ bool mandshurica_strequ(const char* str1, const char* str2) {
 bool mandshurica_strcaseequ(const char* str1, const char* str2) {
        if(strlen(str1) != strlen(str2)) return false;
        int i;
-       for(i = 0; str1[i] != 0; i++){
+       for(i = 0; str1[i] != 0; i++) {
                if(tolower(str1[i]) != tolower(str2[i])) return false;
        }
        return true;
index 7f05ff82de358f81445e6493393c2ed8bc40b264..eccf4794aaf64836cb39bf3e6c56aaba8073c14d 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$ */
 /* --- START LICENSE --- */
 /* -------------------------------------------------------------------------- */
-/*                                               Mandshurica - Build Automation  */
+/*                                            Mandshurica - Build Automation  */
 /* -------------------------------------------------------------------------- */
 /* Copyright (c) 2024 Nishi.                                                  */
 /* Redistribution and use in source and binary forms, with or without modific */
@@ -141,15 +141,16 @@ void http_handler(int sock) {
                                                                                if(header[j] != 0) {
                                                                                        char* key = header;
                                                                                        char* value = header + j;
-                                                                                       if(headers == NULL){
+                                                                                       if(headers == NULL) {
                                                                                                headers = malloc(sizeof(*headers));
                                                                                                headers[0] = NULL;
                                                                                        }
                                                                                        char** old_headers = headers;
                                                                                        int k;
-                                                                                       for(k = 0; headers[k] != NULL; k++);
+                                                                                       for(k = 0; headers[k] != NULL; k++)
+                                                                                               ;
                                                                                        headers = malloc(sizeof(*headers) * (k + 3));
-                                                                                       for(k = 0; old_headers[k] != NULL; k++){
+                                                                                       for(k = 0; old_headers[k] != NULL; k++) {
                                                                                                headers[k] = old_headers[k];
                                                                                        }
                                                                                        headers[k] = mandshurica_strdup(key);
index 6796739a6a1e074fa9390c290c90c302549c2baa..4141f46b2c6fbac20166fe37a3abee34644d5d95 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$ */
 /* --- START LICENSE --- */
 /* -------------------------------------------------------------------------- */
-/*                                               Mandshurica - Build Automation  */
+/*                                            Mandshurica - Build Automation  */
 /* -------------------------------------------------------------------------- */
 /* Copyright (c) 2024 Nishi.                                                  */
 /* Redistribution and use in source and binary forms, with or without modific */
index c87de5c5e1c8dca24e37e45f87117333c2fd7c54..6be077888afc85f850be18de5d7d657cd8bf2108 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$ */
 /* --- START LICENSE --- */
 /* -------------------------------------------------------------------------- */
-/*                                               Mandshurica - Build Automation  */
+/*                                            Mandshurica - Build Automation  */
 /* -------------------------------------------------------------------------- */
 /* Copyright (c) 2024 Nishi.                                                  */
 /* Redistribution and use in source and binary forms, with or without modific */