This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / gnu / usr.bin / gzip / lzw.c
index cd09047..12bf5c6 100644 (file)
@@ -2,16 +2,14 @@
  * This is a dummy version avoiding patent problems.
  */
 
  * 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"
 
 #endif
 
 #include "tailor.h"
 #include "gzip.h"
 #include "lzw.h"
 
-#include <stdio.h>
-
 static int msg_done = 0;
 
 /* Compress in to out with lzw method. */
 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");
     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;
 }
     return ERROR;
 }