X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fstatvfs.c;h=e5118e4badb7f8d07404ededf5ba392649daa683;hp=e71b19a78e399aa486d286e90999b1450f0648c3;hb=ece3b30e4957b2d1d02377a82afb132e8061804d;hpb=579465ec1f4fdb1789bf94ac7356a3c961f3ae93 diff --git a/daemon/statvfs.c b/daemon/statvfs.c index e71b19a..e5118e4 100644 --- a/daemon/statvfs.c +++ b/daemon/statvfs.c @@ -28,6 +28,7 @@ #include #include #include +#include #ifdef HAVE_SYS_STATVFS_H #include @@ -35,7 +36,7 @@ #include -#include "../src/guestfs_protocol.h" +#include "guestfs_protocol.h" #include "daemon.h" #include "actions.h" @@ -114,13 +115,13 @@ do_statvfs (const char *path) * the version of Windows. So this code assumes the disk is NTFS * and the version of Windows is >= Win2K. */ - if (total_number_of_bytes < 16ULL * 1024 * 1024 * 1024 * 1024) + if (total_number_of_bytes < UINT64_C(16) * 1024 * 1024 * 1024 * 1024) ret->bsize = 4096; - else if (total_number_of_bytes < 32ULL * 1024 * 1024 * 1024 * 1024) + else if (total_number_of_bytes < UINT64_C(32) * 1024 * 1024 * 1024 * 1024) ret->bsize = 8192; - else if (total_number_of_bytes < 64ULL * 1024 * 1024 * 1024 * 1024) + else if (total_number_of_bytes < UINT64_C(64) * 1024 * 1024 * 1024 * 1024) ret->bsize = 16384; - else if (total_number_of_bytes < 128ULL * 1024 * 1024 * 1024 * 1024) + else if (total_number_of_bytes < UINT64_C(128) * 1024 * 1024 * 1024 * 1024) ret->bsize = 32768; else ret->bsize = 65536;