mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Revert a few small patches that were intended for version 19.
-4c787a24e7
-78bd364ee3
-7a6880fadc
-8898082a5d
Suggested-by: Robert Haas <robertmhaas@gmail.com> Discussion: https://postgr.es/m/CA+TgmoZ=J=PVNZUNKaxULu+KUVSt3Y-aJ1DZ9Y3Co6mu0z62jA@mail.gmail.com Discussion: https://postgr.es/m/60e8c6d0a6c08e67f15dbbe9e53df0119c710065.camel@j-davis.com
This commit is contained in:
@ -1538,7 +1538,7 @@ GetDecimalFromHex(char hex)
|
||||
if (isdigit((unsigned char) hex))
|
||||
return hex - '0';
|
||||
else
|
||||
return pg_ascii_tolower((unsigned char) hex) - 'a' + 10;
|
||||
return tolower((unsigned char) hex) - 'a' + 10;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -115,7 +115,8 @@ inet_cidr_pton_ipv4(const char *src, u_char *dst, size_t size)
|
||||
src++; /* skip x or X. */
|
||||
while ((ch = *src++) != '\0' && isxdigit((unsigned char) ch))
|
||||
{
|
||||
ch = pg_ascii_tolower((unsigned char) ch);
|
||||
if (isupper((unsigned char) ch))
|
||||
ch = tolower((unsigned char) ch);
|
||||
n = strchr(xdigits, ch) - xdigits;
|
||||
assert(n >= 0 && n <= 15);
|
||||
if (dirty == 0)
|
||||
|
Reference in New Issue
Block a user