diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/libpq/pqcomm.c | 12 | ||||
-rw-r--r-- | src/include/libpq/libpq.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index f7aeede635c..10bf13f997d 100644 --- a/src/backend/libpq/pqcomm.c +++ b/src/backend/libpq/pqcomm.c @@ -166,8 +166,8 @@ static int internal_putbytes(const char *s, size_t len); static int internal_flush(void); #ifdef HAVE_UNIX_SOCKETS -static int Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath); -static int Setup_AF_UNIX(char *sock_path); +static int Lock_AF_UNIX(const char *unixSocketDir, const char *unixSocketPath); +static int Setup_AF_UNIX(const char *sock_path); #endif /* HAVE_UNIX_SOCKETS */ static const PQcommMethods PqCommSocketMethods = { @@ -327,8 +327,8 @@ socket_close(int code, Datum arg) */ int -StreamServerPort(int family, char *hostName, unsigned short portNumber, - char *unixSocketDir, +StreamServerPort(int family, const char *hostName, unsigned short portNumber, + const char *unixSocketDir, pgsocket ListenSocket[], int MaxListen) { pgsocket fd; @@ -611,7 +611,7 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber, * Lock_AF_UNIX -- configure unix socket file path */ static int -Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath) +Lock_AF_UNIX(const char *unixSocketDir, const char *unixSocketPath) { /* * Grab an interlock file associated with the socket file. @@ -642,7 +642,7 @@ Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath) * Setup_AF_UNIX -- configure unix socket permissions */ static int -Setup_AF_UNIX(char *sock_path) +Setup_AF_UNIX(const char *sock_path) { /* * Fix socket ownership/permission if requested. Note we must do this 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); |