X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/beb54af10082dc588132b2c0d32e050028b72c78..78ed81a334dab56aa7a876792a473d67d4359c25:/gnu/usr.bin/gzip/lzw.c diff --git a/gnu/usr.bin/gzip/lzw.c b/gnu/usr.bin/gzip/lzw.c index cd09047047..12bf5c611d 100644 --- a/gnu/usr.bin/gzip/lzw.c +++ b/gnu/usr.bin/gzip/lzw.c @@ -2,16 +2,14 @@ * This is a dummy version avoiding patent problems. */ -#ifndef lint -static char rcsid[] = "$Id: lzw.c,v 0.8 1993/04/25 08:09:58 jloup Exp $"; +#ifdef RCSID +static char rcsid[] = "$Id: lzw.c,v 0.9 1993/06/10 13:27:31 jloup Exp $"; #endif #include "tailor.h" #include "gzip.h" #include "lzw.h" -#include - static int msg_done = 0; /* Compress in to out with lzw method. */ @@ -21,7 +19,8 @@ int lzw(in, out) if (msg_done) return ERROR; msg_done = 1; fprintf(stderr,"output in compress .Z format not supported\n"); - in++, out++; /* avoid warnings on unused variables */ - exit_code = ERROR; + if (in != out) { /* avoid warnings on unused variables */ + exit_code = ERROR; + } return ERROR; }