summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-10-02 18:40:28 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2010-10-02 18:40:48 -0400
commit060f576d0b32ed69ba7317c9a310016ac0d4df02 (patch)
tree517791c2eeb83dd7e952df94a5cdc01ccdc05711 /src
parent8178d9480aeedfa20157bb98e21b5f3b6eb8a957 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/tools/fsync/test_fsync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/fsync/test_fsync.c b/src/tools/fsync/test_fsync.c
index c2370967171..a63441b81c3 100644
--- a/src/tools/fsync/test_fsync.c
+++ b/src/tools/fsync/test_fsync.c
@@ -63,7 +63,7 @@ main(int argc, char *argv[])
for (i = 0; i < XLOG_SEG_SIZE; i++)
full_buf[i] = random();
- if ((tmpfile = open(filename, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR, 0)) == -1)
+ if ((tmpfile = open(filename, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)) == -1)
die("Cannot open output file.");
if (write(tmpfile, full_buf, XLOG_SEG_SIZE) != XLOG_SEG_SIZE)
die("write failed");