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

Commit4123b76

Browse files
committed
Use POSIX constants for mode_t
1 parent57e7bc4 commit4123b76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,12 @@ ReceiveFileList(parray* files, PGconn *conn, PGresult *res, int rownum)
237237
if (copybuf[156]=='5')
238238
{
239239
/* Directory */
240-
pgfile->mode |=__S_IFDIR;
240+
pgfile->mode |=S_IFDIR;
241241
}
242242
elseif (copybuf[156]=='2')
243243
{
244244
/* Symlink */
245-
pgfile->mode |=__S_IFLNK;
245+
pgfile->mode |=S_IFLNK;
246246
}
247247
else
248248
elog(ERROR,"Unrecognized link indicator \"%c\"\n",
@@ -251,7 +251,7 @@ ReceiveFileList(parray* files, PGconn *conn, PGresult *res, int rownum)
251251
else
252252
{
253253
/* regular file */
254-
pgfile->mode |=__S_IFREG;
254+
pgfile->mode |=S_IFREG;
255255
}
256256

257257
parray_append(files,pgfile);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp