From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid conflicts with library versions of inet_net_ntop() and fri
Date: Sun, 18 Aug 2019 23:27:31 +0000
Message-ID: <E1hzUaB-0002eq-4Y@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Avoid conflicts with library versions of inet_net_ntop() and fri
In-Reply-To: <E1hzUaB-0002eq-4Y@gemulon.postgresql.org>
References: <E1hzUaB-0002eq-4Y@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox