Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sbin/newfs_lfs Pullup 1.5 [he]:



details:   https://anonhg.NetBSD.org/src/rev/c5dfb01d1f21
branches:  netbsd-1-5
changeset: 489744:c5dfb01d1f21
user:      tv <tv%NetBSD.org@localhost>
date:      Mon Oct 16 22:28:37 2000 +0000

description:
Pullup 1.5 [he]:
The type of sizeof() can be u_long, so cast to that and print with %ld.

diffstat:

 sbin/newfs_lfs/newfs.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 9fb1d2a13f4b -r c5dfb01d1f21 sbin/newfs_lfs/newfs.c
--- a/sbin/newfs_lfs/newfs.c    Mon Oct 16 22:12:11 2000 +0000
+++ b/sbin/newfs_lfs/newfs.c    Mon Oct 16 22:28:37 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: newfs.c,v 1.3.4.1 2000/09/14 18:53:20 perseant Exp $   */
+/*     $NetBSD: newfs.c,v 1.3.4.2 2000/10/16 22:28:37 tv Exp $ */
 
 /*-
  * Copyright (c) 1989, 1992, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)newfs.c    8.5 (Berkeley) 5/24/95";
 #else
-__RCSID("$NetBSD: newfs.c,v 1.3.4.1 2000/09/14 18:53:20 perseant Exp $");
+__RCSID("$NetBSD: newfs.c,v 1.3.4.2 2000/10/16 22:28:37 tv Exp $");
 #endif
 #endif /* not lint */
 
@@ -289,8 +289,8 @@
        if ((n = read(fd, &lab, sizeof(struct disklabel))) < 0)
                fatal("unable to read disk label: %s", strerror(errno));
        else if (n < sizeof(struct disklabel))
-               fatal("short read of disklabel: %d of %d bytes", n,
-                       sizeof(struct disklabel));
+               fatal("short read of disklabel: %d of %ld bytes", n,
+                       (u_long) sizeof(struct disklabel));
        return(&lab);
 }
 



Home | Main Index | Thread Index | Old Index