Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit06f5fd2

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 anunreasonable thing to do. Per buildfarm (noted on frogmouthin particular).
1 parentd49cc58 commit06f5fd2

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 intpgunlink(const char *path);
251251
#if defined(WIN32)&& !defined(__CYGWIN__)
252252
externintpgsymlink(constchar*oldpath,constchar*newpath);
253253
externintpgreadlink(constchar*path,char*buf,size_tsize);
254-
externboolpgwin32_is_junction(char*path);
254+
externboolpgwin32_is_junction(constchar*path);
255255

256256
#definesymlink(oldpath,newpath)pgsymlink(oldpath, newpath)
257257
#definereadlink(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 anonexistant file is not a junction)
341+
* (since anonexistent file is not a junction)
342342
*/
343343
bool
344-
pgwin32_is_junction(char*path)
344+
pgwin32_is_junction(constchar*path)
345345
{
346346
DWORDattr=GetFileAttributes(path);
347347

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp