aboutsummaryrefslogtreecommitdiff
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:43 +0100
commit669d9eae8531c5d84bc2f6d8f8c9b93d50345403 (patch)
tree94e495d9821a41a537fbed8a244ae4412d3d00d4 /src
parente36e25275fb8ae9440611e23a54b2f0158c56980 (diff)
downloadpostgresql-669d9eae8531c5d84bc2f6d8f8c9b93d50345403.tar.gz
postgresql-669d9eae8531c5d84bc2f6d8f8c9b93d50345403.zip
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 a96e08d0123..c7c9270f6c3 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -2813,7 +2813,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 a0e922b3cb6..33c1d4efe36 100644
--- a/src/bin/pg_basebackup/pg_basebackup.c
+++ b/src/bin/pg_basebackup/pg_basebackup.c
@@ -2430,7 +2430,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);