Source-Changes-HG archive

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

[src/netbsd-1-4]: src/lib/libkvm Pull up revision 1.12 (requested by matt):



details:   https://anonhg.NetBSD.org/src/rev/049a41b80f11
branches:  netbsd-1-4
changeset: 471194:049a41b80f11
user:      he <he%NetBSD.org@localhost>
date:      Fri Oct 27 21:59:37 2000 +0000

description:
Pull up revision 1.12 (requested by matt):
  Some more format / type fixes.

diffstat:

 lib/libkvm/kvm_vax.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (35 lines):

diff -r 46ded5093ecf -r 049a41b80f11 lib/libkvm/kvm_vax.c
--- a/lib/libkvm/kvm_vax.c      Fri Oct 27 21:06:52 2000 +0000
+++ b/lib/libkvm/kvm_vax.c      Fri Oct 27 21:59:37 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kvm_vax.c,v 1.7.2.1 2000/10/27 21:01:16 he Exp $ */
+/*     $NetBSD: kvm_vax.c,v 1.7.2.2 2000/10/27 21:59:37 he Exp $ */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -116,20 +116,20 @@
        u_long va;
        u_long *pa;
 {
-       int end;
+       u_long end;
 
-       if (va < KERNBASE) {
-               _kvm_err(kd, 0, "invalid address (%lx<%x)", va, KERNBASE);
+       if (va < (u_long) KERNBASE) {
+               _kvm_err(kd, 0, "invalid address (%lx<%lx)", va, (u_long) KERNBASE);
                return (0);
        }
 
        end = kd->vmst->end;
        if (va >= end) {
-               _kvm_err(kd, 0, "invalid address (%lx>=%x)", va, end);
+               _kvm_err(kd, 0, "invalid address (%lx>=%lx)", va, end);
                return (0);
        }
 
-       *pa = (va - KERNBASE);
+       *pa = (va - (u_long) KERNBASE);
        return (end - va);
 }
 



Home | Main Index | Thread Index | Old Index