summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2011-07-07 22:37:11 +0000
committerroot <root>2011-07-07 22:37:11 +0000
commitd8d1b4f84ed5e384197a11cd54140dfd4991f388 (patch)
tree6d35cd02efa6a8e5b05581e5ba6624762a531959
parentd94cbd62828958bc2eff4815b2dcf0d4a52e19b4 (diff)
*** empty log message ***
-rw-r--r--eio.c4
-rw-r--r--libeio.m42
2 files changed, 3 insertions, 3 deletions
diff --git a/eio.c b/eio.c
index 3f926a0..91c188f 100644
--- a/eio.c
+++ b/eio.c
@@ -951,10 +951,10 @@ eio__sync_file_range (int fd, off_t offset, size_t nbytes, unsigned int flags)
}
static int
-eio__fallocate (int fd, int mode, off_t offset, size_t nbytes)
+eio__fallocate (int fd, int mode, off_t offset, size_t len)
{
#if HAVE_FALLOCATE
- return fallocate (fd, offset, nbytes, flags);
+ return fallocate (fd, mode, offset, len);
#else
errno = ENOSYS;
return -1;
diff --git a/libeio.m4 b/libeio.m4
index 08a0422..f6c7078 100644
--- a/libeio.m4
+++ b/libeio.m4
@@ -128,7 +128,7 @@ AC_CACHE_CHECK(for fallocate, ac_cv_fallocate, [AC_LINK_IFELSE([
int main (void)
{
int fd = 0;
- int mode = FALLOC_FL_KEEP_SIZE;
+ int mode = 0;
off_t offset = 1;
off_t len = 1;
int res;