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:
Daniel Stenberg 2026-01-09 17:49:26 +01:00
parent 8806035344
commit 0159100f4f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
16 changed files with 30 additions and 277 deletions

View file

@ -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