mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:33:36 +03:00
tool_formparse.c: make curlx_uztoso a static in here
And drop the prefix. This function was not use elsewhere and it should certainly not be present in libcurl code when not used in the library. Closes #15796
This commit is contained in:
parent
28dd14aafe
commit
3f8452dde7
4 changed files with 28 additions and 28 deletions
|
|
@ -100,28 +100,6 @@ unsigned char curlx_ultouc(unsigned long ulnum)
|
|||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
** unsigned size_t to signed curl_off_t
|
||||
*/
|
||||
|
||||
curl_off_t curlx_uztoso(size_t uznum)
|
||||
{
|
||||
#ifdef __INTEL_COMPILER
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable:810) /* conversion may lose significant bits */
|
||||
#elif defined(_MSC_VER)
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable:4310) /* cast truncates constant value */
|
||||
#endif
|
||||
|
||||
DEBUGASSERT(uznum <= (size_t) CURL_MASK_SCOFFT);
|
||||
return (curl_off_t)(uznum & (size_t) CURL_MASK_SCOFFT);
|
||||
|
||||
#if defined(__INTEL_COMPILER) || defined(_MSC_VER)
|
||||
# pragma warning(pop)
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
** unsigned size_t to signed int
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -39,8 +39,6 @@ unsigned char curlx_ultouc(unsigned long ulnum);
|
|||
|
||||
int curlx_uztosi(size_t uznum);
|
||||
|
||||
curl_off_t curlx_uztoso(size_t uznum);
|
||||
|
||||
unsigned long curlx_uztoul(size_t uznum);
|
||||
|
||||
unsigned int curlx_uztoui(size_t uznum);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue