]> granicus.if.org Git - file/commitdiff
fix LP64 build
authorChristos Zoulas <christos@zoulas.com>
Sat, 30 Aug 2008 17:51:09 +0000 (17:51 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 30 Aug 2008 17:51:09 +0000 (17:51 +0000)
src/readelf.c

index 9493347bc563b9583c6826d354c1868cf01e61fd..99cbf3f52924898992719afe5f3cddc8345b2582 100644 (file)
@@ -38,7 +38,7 @@
 #include "magic.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: readelf.c,v 1.75 2008/06/05 12:59:15 christos Exp $")
+FILE_RCSID("@(#)$File: readelf.c,v 1.76 2008/07/16 18:00:57 christos Exp $")
 #endif
 
 #ifdef ELFCORE
@@ -929,7 +929,8 @@ doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num,
                                        if (file_printf(ms,
                                            ", with unknown capability "
                                            "0x%llx = 0x%llx",
-                                           xcap_tag, xcap_val) == -1)
+                                           (unsigned long long)xcap_tag,
+                                           (unsigned long long)xcap_val) == -1)
                                                return -1;
                                        break;
                                }
@@ -976,11 +977,12 @@ doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num,
                        if (cap_hw1)
                                if (file_printf(ms,
                                    " unknown hardware capability 0x%llx",
-                                   cap_hw1) == -1)
+                                   (unsigned long long)cap_hw1) == -1)
                                        return -1;
                } else {
                        if (file_printf(ms,
-                           " hardware capability 0x%llx", cap_hw1) == -1)
+                           " hardware capability 0x%llx",
+                           (unsigned long long)cap_hw1) == -1)
                                return -1;
                }
        }
@@ -996,7 +998,7 @@ doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num,
                if (cap_sf1)
                        if (file_printf(ms,
                            ", with unknown software capability 0x%llx",
-                           cap_sf1) == -1)
+                           (unsigned long long)cap_sf1) == -1)
                                return -1;
        }
        return 0;