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

Commite09509b

Browse files
committed
pg_dump: Add some const qualifiers
1 parentd66b31c commite09509b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎src/bin/pg_dump/pg_backup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ typedef struct _restoreOptions
117117
char*use_role;/* Issue SET ROLE to this */
118118
intdataOnly;
119119
intdropSchema;
120-
char*filename;
120+
constchar*filename;
121121
intschemaOnly;
122122
intdumpSections;
123123
intverbose;

‎src/bin/pg_dump/pg_backup_archiver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ static void vdie_horribly(ArchiveHandle *AH, const char *modulename,
126126
__attribute__((format(PG_PRINTF_ATTRIBUTE,3,0),noreturn));
127127

128128
staticvoiddumpTimestamp(ArchiveHandle*AH,constchar*msg,time_ttim);
129-
staticvoidSetOutput(ArchiveHandle*AH,char*filename,intcompression);
129+
staticvoidSetOutput(ArchiveHandle*AH,constchar*filename,intcompression);
130130
staticOutputContextSaveOutput(ArchiveHandle*AH);
131131
staticvoidRestoreOutput(ArchiveHandle*AH,OutputContextsavedContext);
132132

@@ -1173,7 +1173,7 @@ archprintf(Archive *AH, const char *fmt,...)
11731173
*******************************/
11741174

11751175
staticvoid
1176-
SetOutput(ArchiveHandle*AH,char*filename,intcompression)
1176+
SetOutput(ArchiveHandle*AH,constchar*filename,intcompression)
11771177
{
11781178
intfn;
11791179

‎src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ main(int argc, char **argv)
767767
if (plainText)
768768
{
769769
ropt=NewRestoreOptions();
770-
ropt->filename=(char*)filename;
770+
ropt->filename=filename;
771771
ropt->dropSchema=outputClean;
772772
ropt->aclsSkip=aclsSkip;
773773
ropt->superuser=outputSuperuser;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp