summaryrefslogtreecommitdiff
path: root/sysutils/freefilesync/files/patch-zen_file__io.cpp
blob: 9ddcad46e44e9a2cca28f3f816fc98c0be1da12d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- ../../zen/file_io.cpp.orig	2018-03-01 11:10:56.764684000 +0200
+++ ../../zen/file_io.cpp	2018-03-01 11:12:35.599889000 +0200
@@ -305,8 +305,7 @@
 {
     const FileHandle fh = getHandle();
     //don't use potentially inefficient ::posix_fallocate!
-    const int rv = ::fallocate(fh,            //int fd,
-                               0,             //int mode,
+    const int rv = ::posix_fallocate(fh,            //int fd,
                                0,             //off_t offset
                                expectedSize); //off_t len
     if (rv != 0)