@@ -166,8 +166,8 @@ static int internal_putbytes(const char *s, size_t len);
166
166
static int internal_flush (void );
167
167
168
168
#ifdef HAVE_UNIX_SOCKETS
169
- static int Lock_AF_UNIX (char * unixSocketDir , char * unixSocketPath );
170
- static int Setup_AF_UNIX (char * sock_path );
169
+ static int Lock_AF_UNIX (const char * unixSocketDir , const char * unixSocketPath );
170
+ static int Setup_AF_UNIX (const char * sock_path );
171
171
#endif /* HAVE_UNIX_SOCKETS */
172
172
173
173
static const PQcommMethods PqCommSocketMethods = {
@@ -327,8 +327,8 @@ socket_close(int code, Datum arg)
327
327
*/
328
328
329
329
int
330
- StreamServerPort (int family , char * hostName , unsigned short portNumber ,
331
- char * unixSocketDir ,
330
+ StreamServerPort (int family , const char * hostName , unsigned short portNumber ,
331
+ const char * unixSocketDir ,
332
332
pgsocket ListenSocket [], int MaxListen )
333
333
{
334
334
pgsocket fd ;
@@ -611,7 +611,7 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
611
611
* Lock_AF_UNIX -- configure unix socket file path
612
612
*/
613
613
static int
614
- Lock_AF_UNIX (char * unixSocketDir , char * unixSocketPath )
614
+ Lock_AF_UNIX (const char * unixSocketDir , const char * unixSocketPath )
615
615
{
616
616
/*
617
617
* Grab an interlock file associated with the socket file.
@@ -642,7 +642,7 @@ Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath)
642
642
* Setup_AF_UNIX -- configure unix socket permissions
643
643
*/
644
644
static int
645
- Setup_AF_UNIX (char * sock_path )
645
+ Setup_AF_UNIX (const char * sock_path )
646
646
{
647
647
/*
648
648
* Fix socket ownership/permission if requested. Note we must do this
0 commit comments