mirror of
https://github.com/curl/curl.git
synced 2026-07-26 09:27:21 +03:00
build: fix -Wformat-signedness by adjusting printf masks
- sync printf masks with the passed value. - fix a couple of casts. Cherry-picked from #20848 Closes #21335
This commit is contained in:
parent
54cc65595d
commit
548c16a824
56 changed files with 127 additions and 127 deletions
|
|
@ -519,7 +519,7 @@ static CURLcode cookie_setopts(struct OperationConfig *config, CURL *curl)
|
|||
ISBLANK(cl->data[0]) ? "" : " ", cl->data);
|
||||
if(result) {
|
||||
warnf("skipped provided cookie, the cookie header "
|
||||
"would go over %u bytes", MAX_COOKIE_LINE);
|
||||
"would go over %d bytes", MAX_COOKIE_LINE);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2255,7 +2255,7 @@ static ParameterError opt_file(struct OperationConfig *config,
|
|||
break;
|
||||
case C_CONFIG: /* --config */
|
||||
if(--max_recursive < 0) {
|
||||
errorf("Max config file recursion level reached (%u)",
|
||||
errorf("Max config file recursion level reached (%d)",
|
||||
CONFIG_MAX_LEVELS);
|
||||
err = PARAM_BAD_USE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,8 +67,8 @@ static int writeTime(FILE *stream, const struct writeoutvar *wovar,
|
|||
if(use_json)
|
||||
curl_mfprintf(stream, "\"%s\":", wovar->name);
|
||||
|
||||
curl_mfprintf(stream, "%" CURL_FORMAT_CURL_OFF_TU
|
||||
".%06" CURL_FORMAT_CURL_OFF_TU, secs, us);
|
||||
curl_mfprintf(stream, "%" CURL_FORMAT_CURL_OFF_T
|
||||
".%06" CURL_FORMAT_CURL_OFF_T, secs, us);
|
||||
}
|
||||
else {
|
||||
if(use_json)
|
||||
|
|
|
|||
|
|
@ -394,7 +394,7 @@ ParameterError setvariable(const char *input)
|
|||
line++;
|
||||
nlen = line - name;
|
||||
if(!nlen || (nlen >= MAX_VAR_LEN)) {
|
||||
warnf("Bad variable name length (%zd), skipping", nlen);
|
||||
warnf("Bad variable name length (%zu), skipping", nlen);
|
||||
return PARAM_OK;
|
||||
}
|
||||
if(import) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue