From: Paul Mackerras Date: Wed, 28 Aug 1996 06:32:00 +0000 (+0000) Subject: fixed a buglet to do with how chars are counted X-Git-Tag: RELEASE_2_3_6~376 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=3b6e806514199929cd83ec9e2026b985285994d0 fixed a buglet to do with how chars are counted --- diff --git a/linux/bsd_comp.c b/linux/bsd_comp.c index db15f1b..d622bff 100644 --- a/linux/bsd_comp.c +++ b/linux/bsd_comp.c @@ -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->incomp_count = 0; db->ratio = 0; db->checkpoint = CHECK_GAP; } diff --git a/modules/bsd-comp.c b/modules/bsd-comp.c index 3d89d70..ed88b28 100644 --- a/modules/bsd-comp.c +++ b/modules/bsd-comp.c @@ -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. * - * $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 @@ -215,7 +215,6 @@ bsd_clear(db) db->ratio = 0; db->bytes_out = 0; db->in_count = 0; - db->incomp_count = 0; db->checkpoint = CHECK_GAP; } @@ -741,7 +740,6 @@ bsd_incomp(state, dmsg) if (ent < 0x21 || ent > 0xf9) return; - db->incomp_count++; db->seqno++; ilen = 1; /* count the protocol as 1 byte */ rptr += PPP_HDRLEN; diff --git a/netbsd-1.1/bsd-comp.c b/netbsd-1.1/bsd-comp.c index 35880b3..f4f2984 100644 --- a/netbsd-1.1/bsd-comp.c +++ b/netbsd-1.1/bsd-comp.c @@ -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: * @@ -206,7 +206,6 @@ bsd_clear(db) db->ratio = 0; db->bytes_out = 0; db->in_count = 0; - db->incomp_count = 0; db->checkpoint = CHECK_GAP; } diff --git a/ultrix/bsd-comp.c b/ultrix/bsd-comp.c index 8246343..27f3f93 100644 --- a/ultrix/bsd-comp.c +++ b/ultrix/bsd-comp.c @@ -40,7 +40,7 @@ /* * 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" @@ -216,7 +216,6 @@ bsd_clear(db) db->ratio = 0; db->bytes_out = 0; db->in_count = 0; - db->incomp_count = 0; db->checkpoint = CHECK_GAP; }