diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-09-25 18:52:48 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-09-25 18:52:48 -0400 |
commit | 2a571bc233821023afdf8729a3ae5071b2343f65 (patch) | |
tree | 0172fe781f14fd0d77e9d0897d5ef827086ac108 /doc/src | |
parent | d5aa7a9fe68b2017362421bd853faeb8199a472c (diff) | |
download | postgresql-2a571bc233821023afdf8729a3ae5071b2343f65.tar.gz postgresql-2a571bc233821023afdf8729a3ae5071b2343f65.zip |
Fully const-ify PQconnectdbParams, PQconnectStartParams, and PQpingParams.
The keywords and values arguments of these functions are more properly
declared "const char * const *" than just "const char **".
Lionel Elie Mamane, reviewed by Craig Ringer
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/libpq.sgml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 48689a7df23..0fcf3130645 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -98,7 +98,9 @@ Makes a new connection to the database server. <synopsis> -PGconn *PQconnectdbParams(const char **keywords, const char **values, int expand_dbname); +PGconn *PQconnectdbParams(const char * const *keywords, + const char * const *values, + int expand_dbname); </synopsis> </para> @@ -730,8 +732,8 @@ PGconn *PQsetdb(char *pghost, Make a connection to the database server in a nonblocking manner. <synopsis> -PGconn *PQconnectStartParams(const char **keywords, - const char **values, +PGconn *PQconnectStartParams(const char * const *keywords, + const char * const *values, int expand_dbname); PGconn *PQconnectStart(const char *conninfo); @@ -1112,7 +1114,9 @@ PostgresPollingStatusType PQresetPoll(PGconn *conn); values to obtain the server status. <synopsis> -PGPing PQpingParams(const char **keywords, const char **values, int expand_dbname); +PGPing PQpingParams(const char * const *keywords, + const char * const *values, + int expand_dbname); </synopsis> The function returns one of the following values: |