diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-10-02 18:40:28 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-10-02 18:40:57 -0400 |
commit | 4b1501cb119f90892c0e0c2fabbd368baf7a106e (patch) | |
tree | 65afbb5b996c6a40dfcc7af7e4f5f7645bc9a9f6 | |
parent | 2f76a4b5a6bcefa03f5a4d377cfb449fd5d95185 (diff) | |
download | postgresql-4b1501cb119f90892c0e0c2fabbd368baf7a106e.tar.gz postgresql-4b1501cb119f90892c0e0c2fabbd368baf7a106e.zip |
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
-rw-r--r-- | src/tools/fsync/test_fsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/fsync/test_fsync.c b/src/tools/fsync/test_fsync.c index 744775bf736..68a78b8dd94 100644 --- a/src/tools/fsync/test_fsync.c +++ b/src/tools/fsync/test_fsync.c @@ -60,7 +60,7 @@ main(int argc, char *argv[]) for (i = 0; i < XLOG_SEG_SIZE; i++) full_buf[i] = 'a'; - 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"); |