From: nishi Date: Sun, 14 Apr 2024 02:51:30 +0000 (+0000) Subject: replace X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=40070023a3fc82dd71e206e66ea6cbee6b4a2b2e;p=mandshurica.git replace git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@22 f982e544-4a7d-3444-ad1a-fde59a2a69f1 --- diff --git a/Mandshurica/config.c b/Mandshurica/config.c index 4f6a24b..32e76c4 100644 --- a/Mandshurica/config.c +++ b/Mandshurica/config.c @@ -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 */ diff --git a/Mandshurica/log.c b/Mandshurica/log.c index cf80584..b465a59 100644 --- a/Mandshurica/log.c +++ b/Mandshurica/log.c @@ -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 */ diff --git a/Mandshurica/main.c b/Mandshurica/main.c index 9b215d6..e5b1198 100644 --- a/Mandshurica/main.c +++ b/Mandshurica/main.c @@ -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 */ diff --git a/Mandshurica/mandshurica.h b/Mandshurica/mandshurica.h index 820971a..8c14c50 100644 --- a/Mandshurica/mandshurica.h +++ b/Mandshurica/mandshurica.h @@ -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 */ diff --git a/Mandshurica/ms_config.h b/Mandshurica/ms_config.h index ddc9e5f..e8ce1d2 100644 --- a/Mandshurica/ms_config.h +++ b/Mandshurica/ms_config.h @@ -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 */ diff --git a/Mandshurica/ms_log.h b/Mandshurica/ms_log.h index 7de8aa8..6efef89 100644 --- a/Mandshurica/ms_log.h +++ b/Mandshurica/ms_log.h @@ -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 */ diff --git a/Mandshurica/ms_util.h b/Mandshurica/ms_util.h index 2178e72..808efeb 100644 --- a/Mandshurica/ms_util.h +++ b/Mandshurica/ms_util.h @@ -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 */ diff --git a/Mandshurica/util.c b/Mandshurica/util.c index 41f2720..63321fb 100644 --- a/Mandshurica/util.c +++ b/Mandshurica/util.c @@ -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 */ @@ -30,10 +30,10 @@ #include "ms_util.h" +#include #include #include #include -#include 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; diff --git a/Module/http.c b/Module/http.c index 7f05ff8..eccf479 100644 --- a/Module/http.c +++ b/Module/http.c @@ -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); diff --git a/Module/subversion.c b/Module/subversion.c index 6796739..4141f46 100644 --- a/Module/subversion.c +++ b/Module/subversion.c @@ -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 */ diff --git a/Module/syslog.c b/Module/syslog.c index c87de5c..6be0778 100644 --- a/Module/syslog.c +++ b/Module/syslog.c @@ -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 */