mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:33:34 +03:00
src: tidy up types, add necessary casts
Cherry-picked from #13489 Closes #13614
This commit is contained in:
parent
d0728c9109
commit
1a89538347
14 changed files with 30 additions and 32 deletions
|
|
@ -97,15 +97,15 @@ static void print_category(curlhelp_t category, unsigned int cols)
|
|||
|
||||
for(i = 0; helptext[i].opt; ++i)
|
||||
if(helptext[i].categories & category) {
|
||||
int opt = (int)longopt;
|
||||
size_t opt = longopt;
|
||||
size_t desclen = strlen(helptext[i].desc);
|
||||
if(opt + desclen >= (cols - 2)) {
|
||||
if(desclen < (cols - 2))
|
||||
opt = (cols - 3) - (int)desclen;
|
||||
opt = (cols - 3) - desclen;
|
||||
else
|
||||
opt = 0;
|
||||
}
|
||||
printf(" %-*s %s\n", opt, helptext[i].opt, helptext[i].desc);
|
||||
printf(" %-*s %s\n", (int)opt, helptext[i].opt, helptext[i].desc);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue