summaryrefslogtreecommitdiff
path: root/src/include/libpq
diff options
context:
space:
mode:
authorPeter Eisentraut2020-01-31 10:50:32 +0000
committerPeter Eisentraut2020-01-31 11:52:08 +0000
commit7c23bfd25c423b4513a16d41c5e4d09c32807155 (patch)
tree82927d8812b2f95a161138576488c492c765f89d /src/include/libpq
parent7ca8c9706a5785feef5d5eff0078c5361694b274 (diff)
Sprinkle some const decorations
This might help clarify the API a bit.
Diffstat (limited to 'src/include/libpq')
-rw-r--r--src/include/libpq/libpq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/libpq/libpq.h b/src/include/libpq/libpq.h
index f452b539681..4d3a0bef63e 100644
--- a/src/include/libpq/libpq.h
+++ b/src/include/libpq/libpq.h
@@ -55,8 +55,8 @@ extern const PGDLLIMPORT PQcommMethods *PqCommMethods;
*/
extern WaitEventSet *FeBeWaitSet;
-extern int StreamServerPort(int family, char *hostName,
- unsigned short portNumber, char *unixSocketDir,
+extern int StreamServerPort(int family, const char *hostName,
+ unsigned short portNumber, const char *unixSocketDir,
pgsocket ListenSocket[], int MaxListen);
extern int StreamConnection(pgsocket server_fd, Port *port);
extern void StreamClose(pgsocket sock);