diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-11-07 16:13:49 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-11-07 16:13:49 -0500 |
commit | 9042f583429ef880665dd36b7bcad45ba62dea7b (patch) | |
tree | 8f1446f031d1beaadc2784e8c6a0ebcb58481485 /src/interfaces/libpq/fe-secure-openssl.c | |
parent | a43b4ab1111ca5e5f40a2ddd8e56bf999b9fdad9 (diff) | |
download | postgresql-9042f583429ef880665dd36b7bcad45ba62dea7b.tar.gz postgresql-9042f583429ef880665dd36b7bcad45ba62dea7b.zip |
Rename PQsslAttributes() to PQsslAttributeNames(), and const-ify fully.
Per discussion, the original name was a bit misleading, and
PQsslAttributeNames() seems more apropos. It's not quite too late to
change this in 9.5, so let's change it while we can.
Also, make sure that the pointer array is const, not only the pointed-to
strings.
Minor documentation wordsmithing while at it.
Lars Kanis, slight adjustments by me
Diffstat (limited to 'src/interfaces/libpq/fe-secure-openssl.c')
-rw-r--r-- | src/interfaces/libpq/fe-secure-openssl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/libpq/fe-secure-openssl.c b/src/interfaces/libpq/fe-secure-openssl.c index 4b2a324634b..45ad7321bbe 100644 --- a/src/interfaces/libpq/fe-secure-openssl.c +++ b/src/interfaces/libpq/fe-secure-openssl.c @@ -1532,10 +1532,10 @@ PQsslStruct(PGconn *conn, const char *struct_name) return NULL; } -const char ** -PQsslAttributes(PGconn *conn) +const char *const * +PQsslAttributeNames(PGconn *conn) { - static const char *result[] = { + static const char *const result[] = { "library", "key_bits", "cipher", |