mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:03:52 +03:00
lib: use (u)int64_t instead of long long
Remove config-plan9.h because it does not support 64 bit, meaning it has not been working for years. Closes #20233
This commit is contained in:
parent
8806035344
commit
0159100f4f
16 changed files with 30 additions and 277 deletions
|
|
@ -38,16 +38,9 @@ void tutil_rlim2str(char *buf, size_t len, rlim_t val)
|
|||
return;
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_LONGLONG
|
||||
if(sizeof(rlim_t) > sizeof(long))
|
||||
curl_msnprintf(buf, len, "%llu", (unsigned long long)val);
|
||||
if(sizeof(rlim_t) == SIZEOF_INT)
|
||||
curl_msnprintf(buf, len, "%u", (unsigned int)val);
|
||||
else
|
||||
#endif
|
||||
{
|
||||
if(sizeof(rlim_t) < sizeof(long))
|
||||
curl_msnprintf(buf, len, "%u", (unsigned int)val);
|
||||
else
|
||||
curl_msnprintf(buf, len, "%lu", (unsigned long)val);
|
||||
}
|
||||
curl_msnprintf(buf, len, "%lu", (unsigned long)val);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue