Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/pmax/tc Change max -> max_polls to avoid shadowing.
details: https://anonhg.NetBSD.org/src/rev/3af5106e8604
branches: trunk
changeset: 581925:3af5106e8604
user: jmc <jmc%NetBSD.org@localhost>
date: Fri Jun 10 15:41:11 2005 +0000
description:
Change max -> max_polls to avoid shadowing.
diffstat:
sys/arch/pmax/tc/dt.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (48 lines):
diff -r b0c776c8faa1 -r 3af5106e8604 sys/arch/pmax/tc/dt.c
--- a/sys/arch/pmax/tc/dt.c Fri Jun 10 14:08:06 2005 +0000
+++ b/sys/arch/pmax/tc/dt.c Fri Jun 10 15:41:11 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dt.c,v 1.4 2005/01/15 05:24:30 mhitch Exp $ */
+/* $NetBSD: dt.c,v 1.5 2005/06/10 15:41:11 jmc Exp $ */
/*-
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -140,7 +140,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dt.c,v 1.4 2005/01/15 05:24:30 mhitch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dt.c,v 1.5 2005/06/10 15:41:11 jmc Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -390,7 +390,7 @@
{
volatile u_int *poll, *data;
uint8_t c;
- int max;
+ int max_polls;
poll = dt_state.ds_poll;
data = dt_state.ds_data;
@@ -405,17 +405,17 @@
}
for (;;) {
- max = DT_MAX_POLL;
+ max_polls = DT_MAX_POLL;
while (!DT_RX_AVAIL(poll)) {
if (intr)
return (DT_GET_NOTYET);
- if (max-- <= 0)
+ if (max_polls-- <= 0)
break;
DELAY(1);
}
- if (max <= 0) {
+ if (max_polls <= 0) {
if (dt_state.ds_state != 0) {
dt_state.ds_bad_pkts++;
dt_state.ds_state = 0;
Home |
Main Index |
Thread Index |
Old Index