diff options
| author | Dan Engelbrecht <[email protected]> | 2022-04-01 22:47:46 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-04-01 22:47:46 +0200 |
| commit | e51efe1674fa3d9d4af715d85a4045e1ee7450f3 (patch) | |
| tree | 7d7fc4ad33fdd36e5d97719895984f83adb09957 /zenstore/gc.cpp | |
| parent | linux fixes (diff) | |
| download | zen-e51efe1674fa3d9d4af715d85a4045e1ee7450f3.tar.xz zen-e51efe1674fa3d9d4af715d85a4045e1ee7450f3.zip | |
linux compilation fixes
Diffstat (limited to 'zenstore/gc.cpp')
| -rw-r--r-- | zenstore/gc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zenstore/gc.cpp b/zenstore/gc.cpp index a37fc2f5b..a86bae143 100644 --- a/zenstore/gc.cpp +++ b/zenstore/gc.cpp @@ -119,20 +119,20 @@ namespace { } # if ZEN_PLATFORM_MAC - if (ftruncate(Fd, (off_t)FileSize) < 0) + if (ftruncate(Fd, (off_t)Size) < 0) { return zen::MakeErrorCodeFromLastError(); } - if (posix_fallocate(Fd, 0, (off_t)FileSize) < 0) + if (posix_fallocate(Fd, 0, (off_t)Size) < 0) { return zen::MakeErrorCodeFromLastError(); } # else - if (ftruncate64(Fd, (off64_t)FileSize) < 0) + if (ftruncate64(Fd, (off64_t)Size) < 0) { return zen::MakeErrorCodeFromLastError(); } - if (posix_fallocate64(Fd, 0, (off64_t)FileSize) < 0) + if (posix_fallocate64(Fd, 0, (off64_t)Size) < 0) { return zen::MakeErrorCodeFromLastError(); } |