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)
commit2a715371c44399f8ec538b3c8df0590400c75678
tree32f466037ba81698b26f91881c085fb69b78aa5b
parentb39938f01208d2860239792aa9e802a9cf8c286b
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