Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit4877049

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 parentd5b90cd commit4877049

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-
staticconstchar*xlogSourceNames[]= {"any","archive","pg_wal","stream"};
772+
staticconstchar*constxlogSourceNames[]= {"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-
staticconstchar*excludeDirContents[]=
134+
staticconstchar*constexcludeDirContents[]=
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-
staticconstchar*excludeFiles[]=
175+
staticconstchar*constexcludeFiles[]=
176176
{
177177
/* Skip auto conf temporary file. */
178178
PG_AUTOCONF_FILENAME".tmp",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp