From 2c6ba846c50a5c668fdf360e58528375d07adb55 Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 29 Nov 2001 23:32:42 +0000 Subject: [PATCH] Rename a local to avoid a -Wshadow warning. --- lib/libkvm/kvm_vax.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libkvm/kvm_vax.c b/lib/libkvm/kvm_vax.c index 2bff6f09898a..5fb08240216f 100644 --- a/lib/libkvm/kvm_vax.c +++ b/lib/libkvm/kvm_vax.c @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_vax.c,v 1.13 2001/09/07 01:48:37 chuck Exp $ */ +/* $NetBSD: kvm_vax.c,v 1.14 2001/11/29 23:32:42 thorpej Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -81,7 +81,7 @@ _kvm_initvtop(kd) { struct vmstate *vm; struct stat st; - struct nlist nlist[2]; + struct nlist nl[2]; vm = (struct vmstate *)_kvm_malloc(kd, sizeof(*vm)); if (vm == 0) @@ -93,13 +93,13 @@ _kvm_initvtop(kd) return (-1); /* Get end of kernel address */ - nlist[0].n_name = "_end"; - nlist[1].n_name = 0; - if (kvm_nlist(kd, nlist) != 0) { + nl[0].n_name = "_end"; + nl[1].n_name = 0; + if (kvm_nlist(kd, nl) != 0) { _kvm_err(kd, kd->program, "pmap_stod: no such symbol"); return (-1); } - vm->end = (u_long)nlist[0].n_value; + vm->end = (u_long)nl[0].n_value; return (0); }