pgsql: Avoid conflicts with library versions of inet_net_ntop() andfri

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Avoid conflicts with library versions of inet_net_ntop() andfri
Дата
Msg-id E1hzUaB-0002eq-4Y@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/927f34ce8a215c8b254136f710cca9ca4da1352c

Modified Files
--------------
src/backend/utils/adt/inet_cidr_ntop.c |  4 ++--
src/backend/utils/adt/inet_net_pton.c  |  6 +++---
src/backend/utils/adt/network.c        | 24 ++++++++++++------------
src/include/port.h                     |  4 ++--
src/include/utils/builtins.h           |  8 ++++----
src/interfaces/libpq/fe-connect.c      | 16 ++++++++--------
src/port/getaddrinfo.c                 |  7 ++++---
src/port/inet_net_ntop.c               |  8 ++++----
8 files changed, 39 insertions(+), 38 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix incidental warnings from cpluspluscheck.
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: pgsql: Fix incidental warnings from cpluspluscheck.