diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-01 20:14:32 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-01 20:14:32 +0400 |
commit | 9d703560099beea2b2b53c533e7f71dc926293b2 (patch) | |
tree | d60df5c9d3f7dbb9931dc1243362d1808f1ff459 /src/util.c | |
parent | 7dcf9f9bade26ca02b8706a2e4cb2066f6ba7b00 (diff) | |
download | rspamd-9d703560099beea2b2b53c533e7f71dc926293b2.tar.gz rspamd-9d703560099beea2b2b53c533e7f71dc926293b2.zip |
Separate librspamdserver API from plugins and workers functions.
Make tests compileable again.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c index 5fcf0858b..e7fe474ad 100644 --- a/src/util.c +++ b/src/util.c @@ -1335,8 +1335,8 @@ rspamd_strtoul (const gchar *s, gsize len, gulong *value) gint rspamd_fallocate (gint fd, off_t offset, off_t len) { -#if defined(HAVE_FALLOCATE) && defined(FALLOC_FL_KEEP_SIZE) - return fallocate (fd, FALLOC_FL_KEEP_SIZE, offset, len); +#if defined(HAVE_FALLOCATE) + return fallocate (fd, 0, offset, len); #elif defined(HAVE_POSIX_FALLOCATE) return posix_fallocate (fd, offset, len); #else |