pgsql: Rename strtoi() to strtoint().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Rename strtoi() to strtoint().
Date: 2016-04-23 20:53:35
Message-ID: E1au4YZ-0008Db-0u@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rename strtoi() to strtoint().

NetBSD has seen fit to invent a libc function named strtoi(), which
conflicts with the long-established static functions of the same name in
datetime.c and ecpg's interval.c. While muttering darkly about intrusions
on application namespace, we'll rename our functions to avoid the conflict.

Back-patch to all supported branches, since this would affect attempts
to build any of them on recent NetBSD.

Thomas Munro

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0ab3595e5bb53a8fc2cd231320b1af1ae3ed68e0

Modified Files
--------------
src/backend/utils/adt/datetime.c | 28 ++++++++++++++--------------
src/interfaces/ecpg/pgtypeslib/interval.c | 6 +++---
2 files changed, 17 insertions(+), 17 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fabien COELHO 2016-04-24 06:17:02 Re: pgsql: doc: Fix typos
Previous Message Peter Eisentraut 2016-04-23 18:54:09 pgsql: doc: Fix typos