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:27:21 +0100
commitb7b0314b80e90130b27e9f5ee4e45778e4cccf09 (patch)
treed44904514079b96cf8fb5fded2650302c9a18b15 /src
parent773e2d29cd63e2946d200dc5960a3ffb31910fe7 (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 fb16897adf0..1d4546eeafb 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -3422,7 +3422,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 7d6c45b55da..d8cd342ae8a 100644
--- a/src/bin/pg_basebackup/pg_basebackup.c
+++ b/src/bin/pg_basebackup/pg_basebackup.c
@@ -2248,7 +2248,7 @@ main(int argc, char **argv)
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);
exit(1);
#endif
free(linkloc);