]> granicus.if.org Git - postgresql/commit
Avoid conflicts with library versions of inet_net_ntop() and friends.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Aug 2019 23:27:23 +0000 (19:27 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Aug 2019 23:27:23 +0000 (19:27 -0400)
commit927f34ce8a215c8b254136f710cca9ca4da1352c
tree08193b74ccd8c5afa2d9f37f0d99c1fbb5ad0f00
parent232720be9b6412ec2b6bee405299bcbbbe700f0b
Avoid conflicts with library versions of inet_net_ntop() and friends.

Prefix inet_net_ntop and sibling routines with "pg_" to ensure that
they aren't mistaken for C-library functions.  This fixes warnings
from cpluspluscheck on some platforms, and should help reduce reader
confusion everywhere, since our functions aren't exactly interchangeable
with the library versions (they may have different ideas about address
family codes).

This shouldn't be fixing any actual bugs, unless somebody's linker
is misbehaving, so no need to back-patch.

Discussion: https://postgr.es/m/20518.1559494394@sss.pgh.pa.us
src/backend/utils/adt/inet_cidr_ntop.c
src/backend/utils/adt/inet_net_pton.c
src/backend/utils/adt/network.c
src/include/port.h
src/include/utils/builtins.h
src/interfaces/libpq/fe-connect.c
src/port/getaddrinfo.c
src/port/inet_net_ntop.c