diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-10-22 17:10:49 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-10-23 16:03:17 +0100 |
commit | 29bf1fb6505245b9cbd97df8de395bcf0d7e9e36 (patch) | |
tree | fd92246855da48c63172b4835b6119d8295c36a2 | |
parent | cf4ce99a68626582c0870df30115273284a0960e (diff) | |
download | libguestfs-29bf1fb6505245b9cbd97df8de395bcf0d7e9e36.tar.gz libguestfs-29bf1fb6505245b9cbd97df8de395bcf0d7e9e36.tar.xz libguestfs-29bf1fb6505245b9cbd97df8de395bcf0d7e9e36.zip |
daemon: Use stdint UINT64_C instead of <const>ULL.
(cherry picked from commit cd29c50ca820a03b9cecb300a84fb884425cb565)
-rw-r--r-- | daemon/statvfs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/daemon/statvfs.c b/daemon/statvfs.c index e71b19a7..cf37b96f 100644 --- a/daemon/statvfs.c +++ b/daemon/statvfs.c @@ -28,6 +28,7 @@ #include <sys/types.h> #include <fcntl.h> #include <unistd.h> +#include <stdint.h> #ifdef HAVE_SYS_STATVFS_H #include <sys/statvfs.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; |