]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
cast DWORD to int to match %d printf specifier
authorTim Kientzle <kientzle@gmail.com>
Fri, 25 Jun 2010 04:03:48 +0000 (00:03 -0400)
committerTim Kientzle <kientzle@gmail.com>
Fri, 25 Jun 2010 04:03:48 +0000 (00:03 -0400)
SVN-Revision: 2499

libarchive/archive_read_disk.c

index 60c37feb7b13b9d0c140603146baf59a56cfdce8..47dcc5edc9827d6785961609e0d0d0539be13733 100644 (file)
@@ -1014,7 +1014,7 @@ setup_current_filesystem(struct archive_read_disk *a)
        if (!GetVolumePathName(tree_current_access_path(t), vol, sizeof(vol))) {
                t->current_filesystem->remote = -1;
                archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
-                       "GetVolumePathName failed: %d", GetLastError());
+                        "GetVolumePathName failed: %d", (int)GetLastError());
                return (ARCHIVE_FAILED);
        }
        switch (GetDriveType(vol)) {