]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Rename strtoi() to strtoint().
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 23 Apr 2016 20:53:15 +0000 (16:53 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 23 Apr 2016 20:53:15 +0000 (16:53 -0400)
commit0f54912837ec3f1dc352627b18dca3d7d54fc787
tree9f3dda989c40941df7cb41af64cb01f699625898
parentad2d32b57e7b38d52dd2505efa19a28b19b773cb
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