fix lp64 build.

This commit is contained in:
christos 2008-08-30 17:49:43 +00:00
parent 4a8ce74d3f
commit fed53d5170

View File

@ -1,4 +1,4 @@
/* $NetBSD: readelf.c,v 1.14 2008/08/30 12:16:52 christos Exp $ */ /* $NetBSD: readelf.c,v 1.15 2008/08/30 17:49:43 christos Exp $ */
/* /*
* Copyright (c) Christos Zoulas 2003. * Copyright (c) Christos Zoulas 2003.
@ -43,7 +43,7 @@
#if 0 #if 0
FILE_RCSID("@(#)$File: readelf.c,v 1.76 2008/07/16 18:00:57 christos Exp $") FILE_RCSID("@(#)$File: readelf.c,v 1.76 2008/07/16 18:00:57 christos Exp $")
#else #else
__RCSID("$NetBSD: readelf.c,v 1.14 2008/08/30 12:16:52 christos Exp $"); __RCSID("$NetBSD: readelf.c,v 1.15 2008/08/30 17:49:43 christos Exp $");
#endif #endif
#endif #endif
@ -935,7 +935,8 @@ doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num,
if (file_printf(ms, if (file_printf(ms,
", with unknown capability " ", with unknown capability "
"0x%llx = 0x%llx", "0x%llx = 0x%llx",
xcap_tag, xcap_val) == -1) (unsigned long long)xcap_tag,
(unsigned long long)xcap_val) == -1)
return -1; return -1;
break; break;
} }
@ -982,11 +983,12 @@ doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num,
if (cap_hw1) if (cap_hw1)
if (file_printf(ms, if (file_printf(ms,
" unknown hardware capability 0x%llx", " unknown hardware capability 0x%llx",
cap_hw1) == -1) (unsigned long long)cap_hw1) == -1)
return -1; return -1;
} else { } else {
if (file_printf(ms, if (file_printf(ms,
" hardware capability 0x%llx", cap_hw1) == -1) " hardware capability 0x%llx",
(unsigned long long)cap_hw1) == -1)
return -1; return -1;
} }
} }
@ -1002,7 +1004,7 @@ doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num,
if (cap_sf1) if (cap_sf1)
if (file_printf(ms, if (file_printf(ms,
", with unknown software capability 0x%llx", ", with unknown software capability 0x%llx",
cap_sf1) == -1) (unsigned long long)cap_sf1) == -1)
return -1; return -1;
} }
return 0; return 0;