1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

pgwin32_is_junction's argument should be "const char *" not "char *".

We're passing const strings to it in places, and that's not an
unreasonable thing to do.  Per buildfarm (noted on frogmouth
in particular).
This commit is contained in:
Tom Lane
2016-11-05 11:14:10 -04:00
parent d49cc588ca
commit 06f5fd2f4f
2 changed files with 3 additions and 3 deletions

View File

@ -338,10 +338,10 @@ pgreadlink(const char *path, char *buf, size_t size)
/*
* Assumes the file exists, so will return false if it doesn't
* (since a nonexistant file is not a junction)
* (since a nonexistent file is not a junction)
*/
bool
pgwin32_is_junction(char *path)
pgwin32_is_junction(const char *path)
{
DWORD attr = GetFileAttributes(path);