]> git.ozlabs.org Git - ppp.git/commitdiff
fixed a buglet to do with how chars are counted
authorPaul Mackerras <paulus@samba.org>
Wed, 28 Aug 1996 06:32:00 +0000 (06:32 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 28 Aug 1996 06:32:00 +0000 (06:32 +0000)
linux/bsd_comp.c
modules/bsd-comp.c
netbsd-1.1/bsd-comp.c
ultrix/bsd-comp.c

index db15f1bdcf17fac8cac52ffa84b96c44dcfebaca..d622bff2641e0b18e2a6ad0842b4c145af606bf2 100644 (file)
@@ -249,7 +249,6 @@ bsd_clear(struct bsd_db *db)
     db->n_bits       = BSD_INIT_BITS;
     db->bytes_out    = 0;
     db->in_count     = 0;
     db->n_bits       = BSD_INIT_BITS;
     db->bytes_out    = 0;
     db->in_count     = 0;
-    db->incomp_count = 0;
     db->ratio       = 0;
     db->checkpoint   = CHECK_GAP;
 }
     db->ratio       = 0;
     db->checkpoint   = CHECK_GAP;
 }
index 3d89d70ee7e37f05ad251586c5b40fecfd7db83b..ed88b28f2c5b5c69e0f32261ea9caf54e16caebb 100644 (file)
@@ -41,7 +41,7 @@
  * This version is for use with STREAMS under SunOS 4.x,
  * Digital UNIX, AIX 4.x, and SVR4 systems including Solaris 2.
  *
  * This version is for use with STREAMS under SunOS 4.x,
  * Digital UNIX, AIX 4.x, and SVR4 systems including Solaris 2.
  *
- * $Id: bsd-comp.c,v 1.19 1996/06/26 00:53:15 paulus Exp $
+ * $Id: bsd-comp.c,v 1.20 1996/08/28 06:31:57 paulus Exp $
  */
 
 #ifdef AIX4
  */
 
 #ifdef AIX4
@@ -215,7 +215,6 @@ bsd_clear(db)
     db->ratio = 0;
     db->bytes_out = 0;
     db->in_count = 0;
     db->ratio = 0;
     db->bytes_out = 0;
     db->in_count = 0;
-    db->incomp_count = 0;
     db->checkpoint = CHECK_GAP;
 }
 
     db->checkpoint = CHECK_GAP;
 }
 
@@ -741,7 +740,6 @@ bsd_incomp(state, dmsg)
     if (ent < 0x21 || ent > 0xf9)
        return;
 
     if (ent < 0x21 || ent > 0xf9)
        return;
 
-    db->incomp_count++;
     db->seqno++;
     ilen = 1;          /* count the protocol as 1 byte */
     rptr += PPP_HDRLEN;
     db->seqno++;
     ilen = 1;          /* count the protocol as 1 byte */
     rptr += PPP_HDRLEN;
index 35880b363c52ed018790d83e8c24715cdfe4fbfa..f4f298455de9244359b25cbe025ac1a49714267e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: bsd-comp.c,v 1.5 1996/07/01 05:31:02 paulus Exp $  */
+/*     $Id: bsd-comp.c,v 1.6 1996/08/28 06:31:58 paulus Exp $  */
 
 /* Because this code is derived from the 4.3BSD compress source:
  *
 
 /* Because this code is derived from the 4.3BSD compress source:
  *
@@ -206,7 +206,6 @@ bsd_clear(db)
     db->ratio = 0;
     db->bytes_out = 0;
     db->in_count = 0;
     db->ratio = 0;
     db->bytes_out = 0;
     db->in_count = 0;
-    db->incomp_count = 0;
     db->checkpoint = CHECK_GAP;
 }
 
     db->checkpoint = CHECK_GAP;
 }
 
index 8246343ee37be9b046928153746f2ab93704a9e5..27f3f9397088db9b389e611ffcbb8c14e20ecedd 100644 (file)
@@ -40,7 +40,7 @@
 /*
  * This version is for use with mbufs on Ultrix systems.
  *
 /*
  * This version is for use with mbufs on Ultrix systems.
  *
- * $Id: bsd-comp.c,v 1.7 1996/07/01 01:24:24 paulus Exp $
+ * $Id: bsd-comp.c,v 1.8 1996/08/28 06:32:00 paulus Exp $
  */
 
 #include "../h/param.h"
  */
 
 #include "../h/param.h"
@@ -216,7 +216,6 @@ bsd_clear(db)
     db->ratio = 0;
     db->bytes_out = 0;
     db->in_count = 0;
     db->ratio = 0;
     db->bytes_out = 0;
     db->in_count = 0;
-    db->incomp_count = 0;
     db->checkpoint = CHECK_GAP;
 }
 
     db->checkpoint = CHECK_GAP;
 }