Commit 48770492 authored by Peter Eisentraut's avatar Peter Eisentraut

Add some const decorations to array constants

Author: Mark G <markg735@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAEeOP_YFVeFjq4zDZLDQbLSRFxBiTpwBQHxCNgGd%2Bp5VztTXyQ%40mail.gmail.com
parent d5b90cd6
...@@ -769,7 +769,7 @@ typedef enum ...@@ -769,7 +769,7 @@ typedef enum
} XLogSource; } XLogSource;
/* human-readable names for XLogSources, for debugging output */ /* human-readable names for XLogSources, for debugging output */
static const char *xlogSourceNames[] = {"any", "archive", "pg_wal", "stream"}; static const char *const xlogSourceNames[] = {"any", "archive", "pg_wal", "stream"};
/* /*
* openLogFile is -1 or a kernel FD for an open log file segment. * openLogFile is -1 or a kernel FD for an open log file segment.
......
...@@ -131,7 +131,7 @@ static bool noverify_checksums = false; ...@@ -131,7 +131,7 @@ static bool noverify_checksums = false;
* Note: this list should be kept in sync with the filter lists in pg_rewind's * Note: this list should be kept in sync with the filter lists in pg_rewind's
* filemap.c. * filemap.c.
*/ */
static const char *excludeDirContents[] = static const char *const excludeDirContents[] =
{ {
/* /*
* Skip temporary statistics files. PG_STAT_TMP_DIR must be skipped even * Skip temporary statistics files. PG_STAT_TMP_DIR must be skipped even
...@@ -172,7 +172,7 @@ static const char *excludeDirContents[] = ...@@ -172,7 +172,7 @@ static const char *excludeDirContents[] =
/* /*
* List of files excluded from backups. * List of files excluded from backups.
*/ */
static const char *excludeFiles[] = static const char *const excludeFiles[] =
{ {
/* Skip auto conf temporary file. */ /* Skip auto conf temporary file. */
PG_AUTOCONF_FILENAME ".tmp", PG_AUTOCONF_FILENAME ".tmp",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment