]> git.ozlabs.org Git - ppp.git/blobdiff - netbsd-1.1/bsd-comp.c
Add pty, notty and record options.
[ppp.git] / netbsd-1.1 / bsd-comp.c
index 6ed8b2a52bec3af714e52bd3d28afc458e551b45..f4f298455de9244359b25cbe025ac1a49714267e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: bsd-comp.c,v 1.4 1996/07/01 01:02:22 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) {
@@ -943,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 ",