]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
maint: update to latest gnulib
authorEric Blake <eblake@redhat.com>
Wed, 8 Dec 2010 00:31:14 +0000 (17:31 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 8 Dec 2010 02:51:34 +0000 (19:51 -0700)
* .gnulib: Update to latest, for at least a stdint.h fix
* src/storage/storage_driver.c (storageVolumeZeroSparseFile)
(storageWipeExtent): Use better type, although it still triggers
spurious -Wformat warning on MacOS's gcc.

.gnulib
src/storage/storage_driver.c

diff --git a/.gnulib b/.gnulib
index 48b1a1ae7d5b0f1494aabd4c8a02fbfcec531026..64911207854610668b480939469282fdaeb96f74 160000 (submodule)
--- a/.gnulib
+++ b/.gnulib
@@ -1 +1 @@
-Subproject commit 48b1a1ae7d5b0f1494aabd4c8a02fbfcec531026
+Subproject commit 64911207854610668b480939469282fdaeb96f74
index 0f099f0124cf10138445088ae5990f1f5f86a0e8..67d043bc8f6d6306e9c34effb1bb29b5fd402077 100644 (file)
@@ -1575,7 +1575,7 @@ storageVolumeZeroSparseFile(virStorageVolDefPtr vol,
         virReportSystemError(errno,
                              _("Failed to truncate volume with "
                                "path '%s' to %ju bytes"),
-                             vol->target.path, (intmax_t)size);
+                             vol->target.path, (uintmax_t)size);
     }
 
 out:
@@ -1597,13 +1597,13 @@ storageWipeExtent(virStorageVolDefPtr vol,
     size_t write_size = 0;
 
     VIR_DEBUG("extent logical start: %ju len: %ju",
-              (intmax_t)extent_start, (intmax_t)extent_length);
+              (uintmax_t)extent_start, (uintmax_t)extent_length);
 
     if ((ret = lseek(fd, extent_start, SEEK_SET)) < 0) {
         virReportSystemError(errno,
                              _("Failed to seek to position %ju in volume "
                                "with path '%s'"),
-                             (intmax_t)extent_start, vol->target.path);
+                             (uintmax_t)extent_start, vol->target.path);
         goto out;
     }