Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/installboot/arch When printf'ing a size_t, cast it ...



details:   https://anonhg.NetBSD.org/src/rev/47999c74012e
branches:  trunk
changeset: 525987:47999c74012e
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Mon Apr 22 23:24:10 2002 +0000

description:
When printf'ing a size_t, cast it to unsigned long and use a %lu format.
This gets rid of a warning when compiling for ARM.

diffstat:

 usr.sbin/installboot/arch/sun68k.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 82bf7a6fa6bd -r 47999c74012e usr.sbin/installboot/arch/sun68k.c
--- a/usr.sbin/installboot/arch/sun68k.c        Mon Apr 22 23:23:05 2002 +0000
+++ b/usr.sbin/installboot/arch/sun68k.c        Mon Apr 22 23:24:10 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sun68k.c,v 1.2 2002/04/22 21:11:46 fredette Exp $ */
+/*     $NetBSD: sun68k.c,v 1.3 2002/04/22 23:24:10 bjh21 Exp $ */
 
 /*-
  * Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: sun68k.c,v 1.2 2002/04/22 21:11:46 fredette Exp $");
+__RCSID("$NetBSD: sun68k.c,v 1.3 2002/04/22 23:24:10 bjh21 Exp $");
 #endif /* !__lint */
 
 #include <sys/param.h>
@@ -140,8 +140,8 @@
                goto done;
        }
        if (bootstrapsb.st_size > sizeof(bb)) {
-               warnx("`%s' cannot be larger than %d bytes",
-                   params->stage1, sizeof(bb));
+               warnx("`%s' cannot be larger than %lu bytes",
+                   params->stage1, (unsigned long)sizeof(bb));
                goto done;
        }
 



Home | Main Index | Thread Index | Old Index