mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Correct constness of a few variables.
This allows the compiler / linker to mark affected pages as read-only. There's other cases, but they're a bit more invasive, and should go through some review. These are easy. They were found with objdump -j .data -t src/backend/postgres|awk '{print $4, $5, $6}'|sort -r|less Discussion: https://postgr.es/m/20181015200754.7y7zfuzsoux2c4ya@alap3.anarazel.de
This commit is contained in:
@ -170,7 +170,7 @@ static int Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath);
|
||||
static int Setup_AF_UNIX(char *sock_path);
|
||||
#endif /* HAVE_UNIX_SOCKETS */
|
||||
|
||||
static PQcommMethods PqCommSocketMethods = {
|
||||
static const PQcommMethods PqCommSocketMethods = {
|
||||
socket_comm_reset,
|
||||
socket_flush,
|
||||
socket_flush_if_writable,
|
||||
@ -181,7 +181,7 @@ static PQcommMethods PqCommSocketMethods = {
|
||||
socket_endcopyout
|
||||
};
|
||||
|
||||
PQcommMethods *PqCommMethods = &PqCommSocketMethods;
|
||||
const PQcommMethods *PqCommMethods = &PqCommSocketMethods;
|
||||
|
||||
WaitEventSet *FeBeWaitSet;
|
||||
|
||||
|
Reference in New Issue
Block a user