Skip to content

Commit 06f5fd2

Browse files
committed
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).
1 parent d49cc58 commit 06f5fd2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/include/port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ extern int pgunlink(const char *path);
251251
#if defined(WIN32) && !defined(__CYGWIN__)
252252
extern int pgsymlink(const char *oldpath, const char *newpath);
253253
extern int pgreadlink(const char *path, char *buf, size_t size);
254-
extern bool pgwin32_is_junction(char *path);
254+
extern bool pgwin32_is_junction(const char *path);
255255

256256
#define symlink(oldpath, newpath) pgsymlink(oldpath, newpath)
257257
#define readlink(path, buf, size) pgreadlink(path, buf, size)

src/port/dirmod.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ pgreadlink(const char *path, char *buf, size_t size)
338338

339339
/*
340340
* Assumes the file exists, so will return false if it doesn't
341-
* (since a nonexistant file is not a junction)
341+
* (since a nonexistent file is not a junction)
342342
*/
343343
bool
344-
pgwin32_is_junction(char *path)
344+
pgwin32_is_junction(const char *path)
345345
{
346346
DWORD attr = GetFileAttributes(path);
347347

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy