Module Name: src Committed By: jakllsch Date: Sun Jan 5 20:49:20 UTC 2014
Modified Files: src/sys/arch/i386/stand/lib: comio_direct.c Log Message: don't shadow local variable To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/i386/stand/lib/comio_direct.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/i386/stand/lib/comio_direct.c diff -u src/sys/arch/i386/stand/lib/comio_direct.c:1.10 src/sys/arch/i386/stand/lib/comio_direct.c:1.11 --- src/sys/arch/i386/stand/lib/comio_direct.c:1.10 Sun Dec 14 18:46:33 2008 +++ src/sys/arch/i386/stand/lib/comio_direct.c Sun Jan 5 20:49:20 2014 @@ -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 @@ computc_d(int c, int combase) /* 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; }