Commit e09509bd authored by Peter Eisentraut's avatar Peter Eisentraut

pg_dump: Add some const qualifiers

parent d66b31c9
...@@ -117,7 +117,7 @@ typedef struct _restoreOptions ...@@ -117,7 +117,7 @@ typedef struct _restoreOptions
char *use_role; /* Issue SET ROLE to this */ char *use_role; /* Issue SET ROLE to this */
int dataOnly; int dataOnly;
int dropSchema; int dropSchema;
char *filename; const char *filename;
int schemaOnly; int schemaOnly;
int dumpSections; int dumpSections;
int verbose; int verbose;
......
...@@ -126,7 +126,7 @@ static void vdie_horribly(ArchiveHandle *AH, const char *modulename, ...@@ -126,7 +126,7 @@ static void vdie_horribly(ArchiveHandle *AH, const char *modulename,
__attribute__((format(PG_PRINTF_ATTRIBUTE, 3, 0), noreturn)); __attribute__((format(PG_PRINTF_ATTRIBUTE, 3, 0), noreturn));
static void dumpTimestamp(ArchiveHandle *AH, const char *msg, time_t tim); static void dumpTimestamp(ArchiveHandle *AH, const char *msg, time_t tim);
static void SetOutput(ArchiveHandle *AH, char *filename, int compression); static void SetOutput(ArchiveHandle *AH, const char *filename, int compression);
static OutputContext SaveOutput(ArchiveHandle *AH); static OutputContext SaveOutput(ArchiveHandle *AH);
static void RestoreOutput(ArchiveHandle *AH, OutputContext savedContext); static void RestoreOutput(ArchiveHandle *AH, OutputContext savedContext);
...@@ -1173,7 +1173,7 @@ archprintf(Archive *AH, const char *fmt,...) ...@@ -1173,7 +1173,7 @@ archprintf(Archive *AH, const char *fmt,...)
*******************************/ *******************************/
static void static void
SetOutput(ArchiveHandle *AH, char *filename, int compression) SetOutput(ArchiveHandle *AH, const char *filename, int compression)
{ {
int fn; int fn;
......
...@@ -767,7 +767,7 @@ main(int argc, char **argv) ...@@ -767,7 +767,7 @@ main(int argc, char **argv)
if (plainText) if (plainText)
{ {
ropt = NewRestoreOptions(); ropt = NewRestoreOptions();
ropt->filename = (char *) filename; ropt->filename = filename;
ropt->dropSchema = outputClean; ropt->dropSchema = outputClean;
ropt->aclsSkip = aclsSkip; ropt->aclsSkip = aclsSkip;
ropt->superuser = outputSuperuser; ropt->superuser = outputSuperuser;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment