mirror of
https://github.com/curl/curl.git
synced 2026-08-26 01:33:33 +03:00
lib: fix formatting nits (part 3)
From `lib/h` to `lib/w`. part 1:47a1ab2ebe#19764 part 2:86b346443b#19800 Closes #19811
This commit is contained in:
parent
dc8c0d54a5
commit
c3b030b860
102 changed files with 2001 additions and 2226 deletions
10
lib/netrc.c
10
lib/netrc.c
|
|
@ -60,8 +60,8 @@ enum found_state {
|
|||
#define FOUND_LOGIN 1
|
||||
#define FOUND_PASSWORD 2
|
||||
|
||||
#define MAX_NETRC_LINE 16384
|
||||
#define MAX_NETRC_FILE (128*1024)
|
||||
#define MAX_NETRC_LINE 16384
|
||||
#define MAX_NETRC_FILE (128 * 1024)
|
||||
#define MAX_NETRC_TOKEN 4096
|
||||
|
||||
/* convert a dynbuf call CURLcode error to a NETRCcode error */
|
||||
|
|
@ -318,7 +318,7 @@ static NETRCcode parsenetrc(struct store_netrc *store,
|
|||
if(!specific_login)
|
||||
Curl_safefree(login);
|
||||
}
|
||||
if((found == (FOUND_PASSWORD|FOUND_LOGIN)) && our_login) {
|
||||
if((found == (FOUND_PASSWORD | FOUND_LOGIN)) && our_login) {
|
||||
done = TRUE;
|
||||
break;
|
||||
}
|
||||
|
|
@ -412,8 +412,8 @@ NETRCcode Curl_parsenetrc(struct store_netrc *store, const char *host,
|
|||
}
|
||||
else {
|
||||
struct passwd pw, *pw_res;
|
||||
if(!getpwuid_r(geteuid(), &pw, pwbuf, sizeof(pwbuf), &pw_res)
|
||||
&& pw_res) {
|
||||
if(!getpwuid_r(geteuid(), &pw, pwbuf, sizeof(pwbuf), &pw_res) &&
|
||||
pw_res) {
|
||||
home = pw.pw_dir;
|
||||
}
|
||||
#elif defined(HAVE_GETPWUID) && defined(HAVE_GETEUID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue