@@ -166,8 +166,8 @@ static int internal_putbytes(const char *s, size_t len);
166166static int internal_flush (void );
167167
168168#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 );
171171#endif /* HAVE_UNIX_SOCKETS */
172172
173173static const PQcommMethods PqCommSocketMethods = {
@@ -327,8 +327,8 @@ socket_close(int code, Datum arg)
327327 */
328328
329329int
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 ,
332332 pgsocket ListenSocket [], int MaxListen )
333333{
334334 pgsocket fd ;
@@ -611,7 +611,7 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
611611 * Lock_AF_UNIX -- configure unix socket file path
612612 */
613613static int
614- Lock_AF_UNIX (char * unixSocketDir , char * unixSocketPath )
614+ Lock_AF_UNIX (const char * unixSocketDir , const char * unixSocketPath )
615615{
616616 /*
617617 * Grab an interlock file associated with the socket file.
@@ -642,7 +642,7 @@ Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath)
642642 * Setup_AF_UNIX -- configure unix socket permissions
643643 */
644644static int
645- Setup_AF_UNIX (char * sock_path )
645+ Setup_AF_UNIX (const char * sock_path )
646646{
647647 /*
648648 * Fix socket ownership/permission if requested. Note we must do this
0 commit comments