Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4877049

Browse filesBrowse 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
Copy full SHA for 4877049

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

‎src/backend/access/transam/xlog.c

Copy file name to clipboardExpand all lines: src/backend/access/transam/xlog.c
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/backend/replication/basebackup.c
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.