Fix ancient compiler warnings and typos in !HAVE_SYMLINK code

This has never been correct since this code was introduced.
This commit is contained in:
Peter Eisentraut 2018-12-22 07:21:40 +01:00
parent 8193d64072
commit 018923ccc1
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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);