Skip to content

Commit 4877049

Browse files
committed
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
1 parent d5b90cd commit 4877049

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ typedef enum
769769
} XLogSource;
770770

771771
/* human-readable names for XLogSources, for debugging output */
772-
static const char *xlogSourceNames[] = {"any", "archive", "pg_wal", "stream"};
772+
static const char *const xlogSourceNames[] = {"any", "archive", "pg_wal", "stream"};
773773

774774
/*
775775
* openLogFile is -1 or a kernel FD for an open log file segment.

src/backend/replication/basebackup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static bool noverify_checksums = false;
131131
* Note: this list should be kept in sync with the filter lists in pg_rewind's
132132
* filemap.c.
133133
*/
134-
static const char *excludeDirContents[] =
134+
static const char *const excludeDirContents[] =
135135
{
136136
/*
137137
* Skip temporary statistics files. PG_STAT_TMP_DIR must be skipped even
@@ -172,7 +172,7 @@ static const char *excludeDirContents[] =
172172
/*
173173
* List of files excluded from backups.
174174
*/
175-
static const char *excludeFiles[] =
175+
static const char *const excludeFiles[] =
176176
{
177177
/* Skip auto conf temporary file. */
178178
PG_AUTOCONF_FILENAME ".tmp",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy