]> Git repositories of Nishi - tewi.git/commitdiff
some fix
authorNishi <nishi@nishi.boats>
Wed, 25 Sep 2024 12:56:45 +0000 (12:56 +0000)
committerNishi <nishi@nishi.boats>
Wed, 25 Sep 2024 12:56:45 +0000 (12:56 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@159 8739d7e6-ffea-ec47-b151-bdff447c6205

README
Server/module.c
Server/tw_version.h

diff --git a/README b/README
index c5172d687029c1d9ef77d6dbe87208854c22b4f2..6ecc3c8ec3300c27e131d1c61c1ef4236edcffab 100644 (file)
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
 
-Tewi HTTPd version 1.07
+Tewi HTTPd version 1.07A
 
 Original by Nishi <nishi@nishi.boats>
 
index 8e6d4576251dd3cbc5b789ec679d939c25b398d3..5ca915a537e43754e77a92913f3cb2040ffa5513 100644 (file)
@@ -58,6 +58,11 @@ void tw_add_version(const char* string) {
 
 void tw_add_define(const char* string) {
        int i;
+       for(i = 0; config.defined[i] != NULL; i++) {
+               if(strcmp(config.defined[i], string) == 0) {
+                       return;
+               }
+       }
        for(i = 0; config.defined[i] != NULL; i++)
                ;
        config.defined[i] = cm_strdup(string);
@@ -72,6 +77,7 @@ void tw_delete_define(const char* string) {
                        for(; config.defined[i] != NULL; i++) {
                                config.defined[i] = config.defined[i + 1];
                        }
+                       break;
                }
        }
 }
index cf549d3b799c0b3d125560d7e2c2ca63b31310e2..e491efa90213b82ec32c91b47c800154d280fe87 100644 (file)
@@ -7,7 +7,7 @@
 extern "C" {
 #endif
 
-#define TW_VERSION "1.07\0"
+#define TW_VERSION "1.07A\0"
 
 const char* tw_get_version(void);
 const char* tw_get_platform(void);