format
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Sun, 7 Apr 2024 08:34:30 +0000 (08:34 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Sun, 7 Apr 2024 08:34:30 +0000 (08:34 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@275 d27a3e52-49c5-7645-884c-6793ebffc270

Library/Spartan.c
Library/URL.c
Library/W3Core.h

index 25d62cb7ed94206a80785e39e40370a7f9ff0969..9116c377bd514516b024a84bc10aeccf90e9bb91 100644 (file)
@@ -54,7 +54,7 @@ void __W3_Spartan_Request(struct W3* w3) {
        __W3_Auto_Write(w3, conlen, strlen(conlen));
        free(conlen);
        __W3_Auto_Write(w3, "\r\n", 2);
-       if(w3->data != NULL){
+       if(w3->data != NULL) {
                __W3_Auto_Write(w3, w3->data, w3->size);
        }
        char* buf = malloc(w3->readsize);
index bdf41c11ae235264510575f742638416d8d1bc1c..7928c731923440c83e70753ea5a25709544bd4bb 100644 (file)
@@ -163,9 +163,9 @@ struct W3URL* W3_Parse_URL(const char* _url) {
                                        r->port = 119;
                                } else if(strcmp(r->protocol, "irc") == 0) {
                                        r->port = 6667;
-                               }  else if(strcmp(r->protocol, "ircs") == 0) {
+                               } else if(strcmp(r->protocol, "ircs") == 0) {
                                        r->port = 6697;
-                               }else if(strcmp(r->protocol, "spartan") == 0) {
+                               } else if(strcmp(r->protocol, "spartan") == 0) {
                                        r->port = 300;
                                }
                        }
index 14e6b38d2545302042c759b0e2fc3b5e39ff3d5c..1a7102649502abff4d8791a32674fc9fd03aecba 100644 (file)
@@ -77,7 +77,6 @@ struct W3 {
        bool writing;
 };
 
-
 /**
  * @brief Initializes LibW3.
  * @return