From 944597af90a1308a307748c818f6bfe8bfe8d637 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Thu, 30 Jun 2005 16:33:47 +0000 Subject: [PATCH] Not everyone has a C99 compiler. --- src/readelf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/readelf.c b/src/readelf.c index 21b8c24d..c437a0be 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -37,7 +37,7 @@ #include "readelf.h" #ifndef lint -FILE_RCSID("@(#)$Id: readelf.c,v 1.47 2005/06/25 15:52:14 christos Exp $") +FILE_RCSID("@(#)$Id: readelf.c,v 1.48 2005/06/30 16:33:47 christos Exp $") #endif #ifdef ELFCORE @@ -490,9 +490,9 @@ donote(struct magic_set *ms, unsigned char *nbuf, size_t offset, size_t size, if (namesz == 10 && strcmp((char *)&nbuf[noff], "DragonFly") == 0 && nh_type == NT_DRAGONFLY_VERSION && descsz == 4) { + uint32_t desc; if (file_printf(ms, ", for DragonFly") == -1) return size; - uint32_t desc; (void)memcpy(&desc, &nbuf[doff], sizeof(desc)); desc = getu32(swap, desc); if (file_printf(ms, " %d.%d.%d", desc / 100000, -- 2.40.0