mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
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
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user