Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dkwedge Rename variable to avoid -Wshadow warnings w...
details: https://anonhg.NetBSD.org/src/rev/ca81bf1e662f
branches: trunk
changeset: 340175:ca81bf1e662f
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Aug 25 11:08:59 2015 +0000
description:
Rename variable to avoid -Wshadow warnings with some compilers.
diffstat:
sys/dev/dkwedge/dk.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (67 lines):
diff -r 8239bb9fccf1 -r ca81bf1e662f sys/dev/dkwedge/dk.c
--- a/sys/dev/dkwedge/dk.c Tue Aug 25 09:01:28 2015 +0000
+++ b/sys/dev/dkwedge/dk.c Tue Aug 25 11:08:59 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dk.c,v 1.82 2015/08/22 07:48:14 mlelstv Exp $ */
+/* $NetBSD: dk.c,v 1.83 2015/08/25 11:08:59 pooka Exp $ */
/*-
* Copyright (c) 2004, 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.82 2015/08/22 07:48:14 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.83 2015/08/25 11:08:59 pooka Exp $");
#ifdef _KERNEL_OPT
#include "opt_dkwedge.h"
@@ -949,7 +949,7 @@
int error;
bool isopen;
dev_t bdev;
- struct vnode *bdevvp;
+ struct vnode *bdvp;
/*
* The kernel cannot read from a character device vnode
@@ -968,17 +968,17 @@
KASSERT(pdk->dk_rawvp != NULL);
isopen = true;
++pdk->dk_rawopens;
- bdevvp = pdk->dk_rawvp;
+ bdvp = pdk->dk_rawvp;
} else {
isopen = false;
- bdevvp = dk_open_parent(bdev, FREAD);
+ bdvp = dk_open_parent(bdev, FREAD);
}
mutex_exit(&pdk->dk_rawlock);
- if (bdevvp == NULL)
+ if (bdvp == NULL)
return EBUSY;
- bp = getiobuf(bdevvp, true);
+ bp = getiobuf(bdvp, true);
bp->b_flags = B_READ;
bp->b_cflags = BC_BUSY;
bp->b_dev = bdev;
@@ -988,7 +988,7 @@
bp->b_cylinder = 0;
bp->b_error = 0;
- VOP_STRATEGY(bdevvp, bp);
+ VOP_STRATEGY(bdvp, bp);
error = biowait(bp);
putiobuf(bp);
@@ -996,7 +996,7 @@
if (isopen) {
--pdk->dk_rawopens;
} else {
- dk_close_parent(bdevvp, FREAD);
+ dk_close_parent(bdvp, FREAD);
}
mutex_exit(&pdk->dk_rawlock);
Home |
Main Index |
Thread Index |
Old Index