summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-12-22 07:21:40 +0100
committerPeter Eisentraut <peter_e@gmx.net>2018-12-22 07:25:20 +0100
commit018923ccc1a68eeac852edeac2ba3bc91dcbd494 (patch)
treed069718233d2097bcdb5e89ca3a0a8cdc9f92a22 /src
parent8193d64072c46e75fe94065111099ee3b2658769 (diff)
Fix ancient compiler warnings and typos in !HAVE_SYMLINK code
This has never been correct since this code was introduced.
Diffstat (limited to 'src')
-rw-r--r--src/bin/initdb/initdb.c2
-rw-r--r--src/bin/pg_basebackup/pg_basebackup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index a9bbc8985ea..4ce50c30775 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -2918,7 +2918,7 @@ create_xlog_or_symlink(void)
exit_nicely();
}
#else
- fprintf(stderr, _("%s: symlinks are not supported on this platform"));
+ fprintf(stderr, _("%s: symlinks are not supported on this platform\n"), progname);
exit_nicely();
#endif
}
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c
index 20c7a830782..ba138062768 100644
--- a/src/bin/pg_basebackup/pg_basebackup.c
+++ b/src/bin/pg_basebackup/pg_basebackup.c
@@ -2523,7 +2523,7 @@ main(int argc, char **argv)
disconnect_and_exit(1);
}
#else
- fprintf(stderr, _("%s: symlinks are not supported on this platform\n"));
+ fprintf(stderr, _("%s: symlinks are not supported on this platform\n"), progname);
disconnect_and_exit(1);
#endif
free(linkloc);