Source-Changes-HG archive

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

[src/netbsd-3]: src/usr.sbin/isdn/isdnd Pull up revision 1.14 (requested by l...



details:   https://anonhg.NetBSD.org/src/rev/dd343e95ef08
branches:  netbsd-3
changeset: 576235:dd343e95ef08
user:      snj <snj%NetBSD.org@localhost>
date:      Wed Jun 15 05:46:40 2005 +0000

description:
Pull up revision 1.14 (requested by lukem in ticket #415):
Don't attempt to use an uninitialized variable in a debug message.
Detected with gcc -Wuninitialized.

diffstat:

 usr.sbin/isdn/isdnd/support.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 6570ca716834 -r dd343e95ef08 usr.sbin/isdn/isdnd/support.c
--- a/usr.sbin/isdn/isdnd/support.c     Wed Jun 15 05:44:09 2005 +0000
+++ b/usr.sbin/isdn/isdnd/support.c     Wed Jun 15 05:46:40 2005 +0000
@@ -27,7 +27,7 @@
  *     i4b daemon - misc support routines
  *     ----------------------------------
  *
- *     $Id: support.c,v 1.13 2004/10/30 08:19:30 dsl Exp $ 
+ *     $Id: support.c,v 1.13.2.1 2005/06/15 05:46:40 snj Exp $ 
  *
  * $FreeBSD$
  *
@@ -52,7 +52,6 @@
 find_active_entry_by_driver(int drivertype, int driverunit)
 {
        struct cfg_entry *cep = NULL;
-       int i;
 
        SIMPLEQ_FOREACH(cep, &cfg_entry_list, cfgq) {
 
@@ -66,7 +65,7 @@
                
                if (isvalidtime(cep) == 0)
                {
-                       DBGL(DL_MSG, (logit(LL_DBG, "find_active_entry_by_driver: entry %d, time not valid!", i)));
+                       DBGL(DL_MSG, (logit(LL_DBG, "find_active_entry_by_driver: entry %d, time not valid!", cep->index)));
                        continue;
                }
                



Home | Main Index | Thread Index | Old Index