From 19abb859193ca03dab38826d65b9eda21076eea1 Mon Sep 17 00:00:00 2001 From: nishi Date: Sun, 7 Apr 2024 08:34:30 +0000 Subject: [PATCH] format git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@275 d27a3e52-49c5-7645-884c-6793ebffc270 --- Library/Spartan.c | 2 +- Library/URL.c | 4 ++-- Library/W3Core.h | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Library/Spartan.c b/Library/Spartan.c index 25d62cb..9116c37 100644 --- a/Library/Spartan.c +++ b/Library/Spartan.c @@ -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); diff --git a/Library/URL.c b/Library/URL.c index bdf41c1..7928c73 100644 --- a/Library/URL.c +++ b/Library/URL.c @@ -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; } } diff --git a/Library/W3Core.h b/Library/W3Core.h index 14e6b38..1a71026 100644 --- a/Library/W3Core.h +++ b/Library/W3Core.h @@ -77,7 +77,6 @@ struct W3 { bool writing; }; - /** * @brief Initializes LibW3. * @return -- 2.43.0