Source-Changes-HG archive

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

[src/trunk]: src/dist/pppd/pppdump Remove uninitialized and unused (except fo...



details:   https://anonhg.NetBSD.org/src/rev/ca19c692164a
branches:  trunk
changeset: 581510:ca19c692164a
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jun 02 09:09:43 2005 +0000

description:
Remove uninitialized and unused (except for debug printf) 'dlen'.
Detected with gcc -Wuninitialized.

diffstat:

 dist/pppd/pppdump/bsd-comp.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 15e8f81fa6f1 -r ca19c692164a dist/pppd/pppdump/bsd-comp.c
--- a/dist/pppd/pppdump/bsd-comp.c      Thu Jun 02 08:20:53 2005 +0000
+++ b/dist/pppd/pppdump/bsd-comp.c      Thu Jun 02 09:09:43 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bsd-comp.c,v 1.2 2005/02/20 10:47:17 cube Exp $        */
+/*     $NetBSD: bsd-comp.c,v 1.3 2005/06/02 09:09:43 lukem Exp $       */
 
 /* Because this code is derived from the 4.3BSD compress source:
  *
@@ -573,7 +573,7 @@
     u_int incode, oldcode, finchar;
     u_char *p, *rptr, *wptr;
     int ilen;
-    int dlen, codelen, extra;
+    int codelen, extra;
 
     rptr = in->buf;
     if (*rptr == 0)
@@ -633,8 +633,8 @@
            if (db->debug) {
                printf("bsd_decomp%d: bad code 0x%x oldcode=0x%x ",
                       db->unit, incode, oldcode);
-               printf("max_ent=0x%x dlen=%d seqno=%d\n",
-                      max_ent, dlen, db->seqno);
+               printf("max_ent=0x%x seqno=%d\n",
+                      max_ent, db->seqno);
            }
            return DECOMP_FATALERROR;   /* probably a bug */
        }



Home | Main Index | Thread Index | Old Index