X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=netbsd-1.1%2Fbsd-comp.c;h=f4f298455de9244359b25cbe025ac1a49714267e;hp=a5715e4897597ac5f232620e8cee71188e504c48;hb=f201866a877a11896aa9deffe7343670d756ea6d;hpb=031ccaeb1dd0343d7b10990f49be6a9f4e82a7dc;ds=sidebyside diff --git a/netbsd-1.1/bsd-comp.c b/netbsd-1.1/bsd-comp.c index a5715e4..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.3 1996/04/04 02:48:56 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; } @@ -416,7 +415,7 @@ bsd_init(db, options, opt_len, unit, hdrlen, mru, debug, decomp) || options[1] != CILEN_BSD_COMPRESS || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION || BSD_NBITS(options[2]) != db->maxbits - || decomp && db->lens == NULL) + || (decomp && db->lens == NULL)) return 0; if (decomp) { @@ -714,7 +713,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; @@ -944,7 +942,7 @@ bsd_decompress(state, cmp, dmpp) } if (incode > max_ent + 2 || incode > db->maxmaxcode - || incode > max_ent && oldcode == CLEAR) { + || (incode > max_ent && oldcode == CLEAR)) { m_freem(mret); if (db->debug) { printf("bsd_decomp%d: bad code 0x%x oldcode=0x%x ",