Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netisdn Remove shadow variable caused by lwp fixes



details:   https://anonhg.NetBSD.org/src/rev/d8bfabf48cd2
branches:  trunk
changeset: 586382:d8bfabf48cd2
user:      jmc <jmc%NetBSD.org@localhost>
date:      Sat Dec 17 05:37:17 2005 +0000

description:
Remove shadow variable caused by lwp fixes

diffstat:

 sys/netisdn/i4b_rbch.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 5317e07d5d9d -r d8bfabf48cd2 sys/netisdn/i4b_rbch.c
--- a/sys/netisdn/i4b_rbch.c    Sat Dec 17 05:26:41 2005 +0000
+++ b/sys/netisdn/i4b_rbch.c    Sat Dec 17 05:37:17 2005 +0000
@@ -27,7 +27,7 @@
  *     i4b_rbch.c - device driver for raw B channel data
  *     ---------------------------------------------------
  *
- *     $Id: i4b_rbch.c,v 1.16 2005/12/11 12:25:06 christos Exp $
+ *     $Id: i4b_rbch.c,v 1.17 2005/12/17 05:37:17 jmc Exp $
  *
  * $FreeBSD$
  *
@@ -36,7 +36,7 @@
  *---------------------------------------------------------------------------*/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i4b_rbch.c,v 1.16 2005/12/11 12:25:06 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i4b_rbch.c,v 1.17 2005/12/17 05:37:17 jmc Exp $");
 
 #include "isdnbchan.h"
 
@@ -687,14 +687,14 @@
 
                case I4B_RBCH_DIALOUT:
                 {
-                       size_t l;
+                       size_t x;
 
-                       for (l = 0; l < TELNO_MAX && ((char *)data)[l]; l++)
+                       for (x = 0; x < TELNO_MAX && ((char *)data)[x]; x++)
                                ;
-                       if (l)
+                       if (x)
                        {
                                NDBGL4(L4_RBCHDBG, "%d, attempting dialout to %s", unit, (char *)data);
-                               i4b_l4_dialoutnumber(rbch_driver_id, unit, l, (char *)data);
+                               i4b_l4_dialoutnumber(rbch_driver_id, unit, x, (char *)data);
                                break;
                        }
                        /* fall through to SDTR */



Home | Main Index | Thread Index | Old Index