projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history]
/
gnu
/
usr.bin
/
gzip
/
lzw.c
diff --git
a/gnu/usr.bin/gzip/lzw.c
b/gnu/usr.bin/gzip/lzw.c
index
cd09047
..
12bf5c6
100644
(file)
--- 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.
*/
* This is a dummy version avoiding patent problems.
*/
-#if
ndef lint
-static char rcsid[] = "$Id: lzw.c,v 0.
8 1993/04/25 08:09:58
jloup Exp $";
+#if
def 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;
}