Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/lib don't shadow local variable
details: https://anonhg.NetBSD.org/src/rev/26cb3bcee6b1
branches: trunk
changeset: 325770:26cb3bcee6b1
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Jan 05 20:49:20 2014 +0000
description:
don't shadow local variable
diffstat:
sys/arch/i386/stand/lib/comio_direct.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 203347761183 -r 26cb3bcee6b1 sys/arch/i386/stand/lib/comio_direct.c
--- a/sys/arch/i386/stand/lib/comio_direct.c Sun Jan 05 20:38:55 2014 +0000
+++ b/sys/arch/i386/stand/lib/comio_direct.c Sun Jan 05 20:49:20 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: comio_direct.c,v 1.10 2008/12/14 18:46:33 christos Exp $ */
+/* $NetBSD: comio_direct.c,v 1.11 2014/01/05 20:49:20 jakllsch Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995, 1996, 1997
@@ -150,9 +150,9 @@
/* check for new XOFF */
if (comstatus_d(combase)) {
- int c = comgetc_d(combase); /* XOFF handled in comgetc_d */
+ int x = comgetc_d(combase); /* XOFF handled in comgetc_d */
/* stuff char into preread buffer */
- serbuf[serbuf_write++] = c;
+ serbuf[serbuf_write++] = x;
if (serbuf_write >= SERBUFSIZE)
serbuf_write = 0;
}
Home |
Main Index |
Thread Index |
Old Index