mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:43:31 +03:00
lib: fix formatting nits (part 2)
From `lib/curl*` to `lib/g*`. With fixes to part 1.
part 1: 47a1ab2ebe #19764
Closes #19800
This commit is contained in:
parent
3e2a946926
commit
86b346443b
56 changed files with 976 additions and 1088 deletions
20
lib/dict.c
20
lib/dict.c
|
|
@ -60,10 +60,10 @@
|
|||
#include "progress.h"
|
||||
#include "dict.h"
|
||||
|
||||
#define DICT_MATCH "/MATCH:"
|
||||
#define DICT_MATCH2 "/M:"
|
||||
#define DICT_MATCH3 "/FIND:"
|
||||
#define DICT_DEFINE "/DEFINE:"
|
||||
#define DICT_MATCH "/MATCH:"
|
||||
#define DICT_MATCH2 "/M:"
|
||||
#define DICT_MATCH3 "/FIND:"
|
||||
#define DICT_DEFINE "/DEFINE:"
|
||||
#define DICT_DEFINE2 "/D:"
|
||||
#define DICT_DEFINE3 "/LOOKUP:"
|
||||
|
||||
|
|
@ -192,9 +192,9 @@ static CURLcode dict_do(struct Curl_easy *data, bool *done)
|
|||
if(result)
|
||||
return result;
|
||||
|
||||
if(curl_strnequal(path, DICT_MATCH, sizeof(DICT_MATCH)-1) ||
|
||||
curl_strnequal(path, DICT_MATCH2, sizeof(DICT_MATCH2)-1) ||
|
||||
curl_strnequal(path, DICT_MATCH3, sizeof(DICT_MATCH3)-1)) {
|
||||
if(curl_strnequal(path, DICT_MATCH, sizeof(DICT_MATCH) - 1) ||
|
||||
curl_strnequal(path, DICT_MATCH2, sizeof(DICT_MATCH2) - 1) ||
|
||||
curl_strnequal(path, DICT_MATCH3, sizeof(DICT_MATCH3) - 1)) {
|
||||
|
||||
word = strchr(path, ':');
|
||||
if(word) {
|
||||
|
|
@ -239,9 +239,9 @@ static CURLcode dict_do(struct Curl_easy *data, bool *done)
|
|||
}
|
||||
Curl_xfer_setup_recv(data, FIRSTSOCKET, -1);
|
||||
}
|
||||
else if(curl_strnequal(path, DICT_DEFINE, sizeof(DICT_DEFINE)-1) ||
|
||||
curl_strnequal(path, DICT_DEFINE2, sizeof(DICT_DEFINE2)-1) ||
|
||||
curl_strnequal(path, DICT_DEFINE3, sizeof(DICT_DEFINE3)-1)) {
|
||||
else if(curl_strnequal(path, DICT_DEFINE, sizeof(DICT_DEFINE) - 1) ||
|
||||
curl_strnequal(path, DICT_DEFINE2, sizeof(DICT_DEFINE2) - 1) ||
|
||||
curl_strnequal(path, DICT_DEFINE3, sizeof(DICT_DEFINE3) - 1)) {
|
||||
|
||||
word = strchr(path, ':');
|
||||
if(word) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue