summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq
diff options
context:
space:
mode:
authorPeter Eisentraut2023-09-26 10:28:57 +0000
committerPeter Eisentraut2023-09-26 10:28:57 +0000
commit64b787656de6c0c6f8f2e6e5b8a3cea25b92458b (patch)
treeeb873f33247043ee72e7172761d670a0829b148d /src/interfaces/libpq
parenteddad679d2ab6d7369767d1c2f01fdbe76afbce3 (diff)
Add some const qualifiers
There was a mismatch between the const qualifiers for excludeDirContents in src/backend/backup/basebackup.c and src/bin/pg_rewind/filemap.c, which led to a quick search for similar cases. We should make excludeDirContents match, but the rest of the changes seem like a good idea as well. Author: David Steele <david@pgmasters.net> Discussion: https://www.postgresql.org/message-id/flat/669a035c-d23d-2f38-7ff0-0cb93e01d610@pgmasters.net
Diffstat (limited to 'src/interfaces/libpq')
-rw-r--r--src/interfaces/libpq/pqexpbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/libpq/pqexpbuffer.c b/src/interfaces/libpq/pqexpbuffer.c
index de7e0328dbb..6d83014aab6 100644
--- a/src/interfaces/libpq/pqexpbuffer.c
+++ b/src/interfaces/libpq/pqexpbuffer.c
@@ -38,7 +38,7 @@
static const char oom_buffer[1] = "";
/* Need a char * for unconstify() compatibility */
-static const char *oom_buffer_ptr = oom_buffer;
+static const char *const oom_buffer_ptr = oom_buffer;
/*