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

Commite77f605

Browse files
committed
Remove excess argument to open(2).
Many compilers don't complain about this, but some do, and it's certainlywrong. Back-patch to 8.4 where the error was introduced.Mark Kirkwood
1 parent1f0b62e commite77f605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/tools/fsync/test_fsync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ main(int argc, char *argv[])
6363
for (i=0;i<XLOG_SEG_SIZE;i++)
6464
full_buf[i]=random();
6565

66-
if ((tmpfile=open(filename,O_RDWR |O_CREAT,S_IRUSR |S_IWUSR,0))==-1)
66+
if ((tmpfile=open(filename,O_RDWR |O_CREAT,S_IRUSR |S_IWUSR))==-1)
6767
die("Cannot open output file.");
6868
if (write(tmpfile,full_buf,XLOG_SEG_SIZE)!=XLOG_SEG_SIZE)
6969
die("write failed");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp