diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-09-17 22:03:00 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-09-17 22:03:00 +0200 |
commit | 48770492c3b796b251112fa9b74534f087c9f471 (patch) | |
tree | 067874b537977e9ec22ee96a935965a177f7f99c | |
parent | d5b90cd648558a4fd714b1396176ddb028ec28fc (diff) | |
download | postgresql-48770492c3b796b251112fa9b74534f087c9f471.tar.gz postgresql-48770492c3b796b251112fa9b74534f087c9f471.zip |
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
-rw-r--r-- | src/backend/access/transam/xlog.c | 2 | ||||
-rw-r--r-- | src/backend/replication/basebackup.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 6876537b625..b7ff004234a 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -769,7 +769,7 @@ typedef enum } XLogSource; /* 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. diff --git a/src/backend/replication/basebackup.c b/src/backend/replication/basebackup.c index 6aab8d7b5f3..f5f361c2093 100644 --- a/src/backend/replication/basebackup.c +++ b/src/backend/replication/basebackup.c @@ -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 * filemap.c. */ -static const char *excludeDirContents[] = +static const char *const excludeDirContents[] = { /* * Skip temporary statistics files. PG_STAT_TMP_DIR must be skipped even @@ -172,7 +172,7 @@ static const char *excludeDirContents[] = /* * List of files excluded from backups. */ -static const char *excludeFiles[] = +static const char *const excludeFiles[] = { /* Skip auto conf temporary file. */ PG_AUTOCONF_FILENAME ".tmp", |