Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x68k/stand/aout2hux Since this is a host program, f...



details:   https://anonhg.NetBSD.org/src/rev/4612bbdd1782
branches:  trunk
changeset: 749053:4612bbdd1782
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Nov 15 18:24:23 2009 +0000

description:
Since this is a host program, fix some 64-bit cleanliness issues.

diffstat:

 sys/arch/x68k/stand/aout2hux/aout2hux.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r a5a3a3c16729 -r 4612bbdd1782 sys/arch/x68k/stand/aout2hux/aout2hux.c
--- a/sys/arch/x68k/stand/aout2hux/aout2hux.c   Sun Nov 15 18:23:08 2009 +0000
+++ b/sys/arch/x68k/stand/aout2hux/aout2hux.c   Sun Nov 15 18:24:23 2009 +0000
@@ -21,7 +21,7 @@
  *     % cc -N -static -Wl,-Ttext,10203040 -o aout2 *.o
  *     % aout2hux -o foo.x aout1 0 aout2 10203040
  *
- *     $NetBSD: aout2hux.c,v 1.10 2009/03/18 16:00:16 cegger Exp $
+ *     $NetBSD: aout2hux.c,v 1.11 2009/11/15 18:24:23 dholland Exp $
  */
 
 #include <sys/types.h>
@@ -200,20 +200,20 @@
 
        if ((i = get_uint16(&hdr->e_shentsize)) != SIZE_ELF68K_SHDR) {
                fprintf(stderr, "%s: size shdr %d should be %d\n", fn, i,
-                       SIZE_ELF68K_SHDR);
+                       (int)SIZE_ELF68K_SHDR);
                return 1;
        }
 
        if ((i = get_uint16(&hdr->e_phentsize)) != SIZE_ELF68K_PHDR) {
                fprintf(stderr, "%s: size phdr %d should be %d\n", fn, i,
-                       SIZE_ELF68K_PHDR);
+                       (int)SIZE_ELF68K_PHDR);
                return 1;
        }
 
        if ((nphdr = get_uint16(&hdr->e_phnum)) != 1 && nphdr != 2) {
                fprintf(stderr,
-                       "%s: has %d loadable segments (should be 1 or 2)\n",
-                       fn, nphdr);
+                       "%s: has %lu loadable segments (should be 1 or 2)\n",
+                       fn, (unsigned long)nphdr);
                return 1;
        }
 



Home | Main Index | Thread Index | Old Index