]> granicus.if.org Git - file/commitdiff
Not everyone has a C99 compiler.
authorChristos Zoulas <christos@zoulas.com>
Thu, 30 Jun 2005 16:33:47 +0000 (16:33 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 30 Jun 2005 16:33:47 +0000 (16:33 +0000)
src/readelf.c

index 21b8c24d00cde601890ae12ea1d8671eb4327430..c437a0bede9b34cd130ebe882ccee538dff755dc 100644 (file)
@@ -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,