From: nishi Date: Sat, 27 Jan 2024 09:20:52 +0000 (+0000) Subject: reformat X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5b69140b7dafb12f267fd4b6029cb9648486acd6;p=libw3.git reformat git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@116 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Library/Core.c b/Library/Core.c index 8a580a9..b88aa21 100644 --- a/Library/Core.c +++ b/Library/Core.c @@ -101,18 +101,18 @@ void W3_Set_Read_Size(struct W3* w3, size_t size) { w3->readsize = size; } void W3_Set_Method(struct W3* w3, const char* method) { if(w3->method != NULL) free(w3->method); - if(method == NULL){ + if(method == NULL) { w3->method = NULL; - }else{ + } else { w3->method = __W3_Strdup(method); } } void W3_Set_Path(struct W3* w3, const char* path) { if(w3->path != NULL) free(w3->path); - if(path == NULL){ + if(path == NULL) { w3->path = NULL; - }else{ + } else { w3->path = __W3_Strdup(path); } } diff --git a/Library/POP3.c b/Library/POP3.c index 0421eda..34bf677 100644 --- a/Library/POP3.c +++ b/Library/POP3.c @@ -128,15 +128,15 @@ void W3_POP3_Set_Password(struct W3* w3, const char* password) { __W3_Add_Prop(w void W3_POP3_Send_Request(struct W3* w3) { if(strcasecmp(w3->method, "LIST") == 0) { __W3_Auto_Write(w3, "LIST ", 5); - if(w3->path != NULL && strlen(w3->path) != 0){ + if(w3->path != NULL && strlen(w3->path) != 0) { __W3_Auto_Write(w3, w3->path, strlen(w3->path)); - }else{ + } else { *((bool*)w3->generic) = false; } __W3_Auto_Write(w3, "\r\n", 2); - }else if(strcasecmp(w3->method, "RETR") == 0) { + } else if(strcasecmp(w3->method, "RETR") == 0) { __W3_Auto_Write(w3, "RETR ", 5); - if(w3->path != NULL && strlen(w3->path) != 0){ + if(w3->path != NULL && strlen(w3->path) != 0) { __W3_Auto_Write(w3, w3->path, strlen(w3->path)); *((bool*)w3->generic) = false; }