Rename strtoi() to strtoint().
authorTom Lane
Sat, 23 Apr 2016 20:53:15 +0000 (16:53 -0400)
committerTom Lane
Sat, 23 Apr 2016 20:53:15 +0000 (16:53 -0400)
commit252c3589536e409a1270eb70f7f301ce14cf7ea1
tree32ce6a31dec6ab5d573d65a80a883a1554b8dde5
parent23da66f0005ace958c10de03e1ce20217fc5999f
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
src/backend/utils/adt/datetime.c
src/interfaces/ecpg/pgtypeslib/interval.c