Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sbin/dump Pull up revision 1.20 (requested by rafal in ...



details:   https://anonhg.NetBSD.org/src/rev/3cfd08e39b68
branches:  netbsd-1-6
changeset: 530305:3cfd08e39b68
user:      grant <grant%NetBSD.org@localhost>
date:      Mon Jun 16 14:03:21 2003 +0000

description:
Pull up revision 1.20 (requested by rafal in ticket #1272):

The sysctl returning the amount of memory in the system returns "int",
which is silly.  Luckily, it really does return the correct result if
interpreted as an unsigned int.  This change lets dump work on 32-bit
systems that have more than 2GB of RAM.

diffstat:

 sbin/dump/rcache.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f1fbb7104943 -r 3cfd08e39b68 sbin/dump/rcache.c
--- a/sbin/dump/rcache.c        Mon Jun 16 14:01:33 2003 +0000
+++ b/sbin/dump/rcache.c        Mon Jun 16 14:03:21 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rcache.c,v 1.11 2002/02/19 23:11:28 lukem Exp $        */
+/*     $NetBSD: rcache.c,v 1.11.2.1 2003/06/16 14:03:21 grant Exp $    */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rcache.c,v 1.11 2002/02/19 23:11:28 lukem Exp $");
+__RCSID("$NetBSD: rcache.c,v 1.11.2.1 2003/06/16 14:03:21 grant Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -103,7 +103,7 @@
 
        nblksread = (readblksize + ufsib->ufs_bsize - 1) / ufsib->ufs_bsize;
        if(cachesize == -1) {   /* Compute from memory available */
-               int usermem;
+               unsigned int usermem;
                int mib[2] = { CTL_HW, HW_USERMEM };
 
                len = sizeof(usermem);



Home | Main Index | Thread Index | Old Index