mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
1784f278a6
They are equivalent, except that StrNCpy() zero-fills the entire destination buffer instead of providing just one trailing zero. For all but a tiny number of callers, that's just overhead rather than being desirable. Remove StrNCpy() as it is now unused. In some cases, namestrcpy() is the more appropriate function to use. While we're here, simplify the API of namestrcpy(): Remove the return value, don't check for NULL input. Nothing was using that anyway. Also, remove a few unused name-related functions. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/44f5e198-36f6-6cdb-7fa9-60e34784daae%402ndquadrant.com |
||
---|---|---|
.. | ||
expected | ||
sql | ||
.gitignore | ||
blf.c | ||
blf.h | ||
crypt-blowfish.c | ||
crypt-des.c | ||
crypt-gensalt.c | ||
crypt-md5.c | ||
imath.c | ||
imath.h | ||
internal-sha2.c | ||
internal.c | ||
Makefile | ||
mbuf.c | ||
mbuf.h | ||
md5.c | ||
md5.h | ||
openssl.c | ||
pgcrypto--1.0--1.1.sql | ||
pgcrypto--1.1--1.2.sql | ||
pgcrypto--1.2--1.3.sql | ||
pgcrypto--1.3.sql | ||
pgcrypto.c | ||
pgcrypto.control | ||
pgcrypto.h | ||
pgp-armor.c | ||
pgp-cfb.c | ||
pgp-compress.c | ||
pgp-decrypt.c | ||
pgp-encrypt.c | ||
pgp-info.c | ||
pgp-mpi-internal.c | ||
pgp-mpi-openssl.c | ||
pgp-mpi.c | ||
pgp-pgsql.c | ||
pgp-pubdec.c | ||
pgp-pubenc.c | ||
pgp-pubkey.c | ||
pgp-s2k.c | ||
pgp.c | ||
pgp.h | ||
px-crypt.c | ||
px-crypt.h | ||
px-hmac.c | ||
px.c | ||
px.h | ||
rijndael.c | ||
rijndael.h | ||
rijndael.tbl | ||
sha1.c | ||
sha1.h |