Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e77f605

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/fsync/test_fsync.c

+1-1
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)