1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/archivers/arc/files/patch-arclzw.c
Xin LI a31b2fa3c3 Fix build.
MFH:		2020Q3 (build fix)
2020-08-20 04:43:54 +00:00

27 lines
702 B
C

--- arclzw.c.orig 2010-08-07 13:06:42 UTC
+++ arclzw.c
@@ -57,9 +57,11 @@ static VOID putcode();
#define NOT_FND 0xFFFF
extern u_char *pinbuf;
-u_char *inbeg, *inend;
-u_char *outbuf;
-u_char *outbeg, *outend;
+u_char *inbeg;
+u_char *inend;
+extern u_char *outbuf;
+u_char *outbeg;
+extern u_char *outend;
static int sp; /* current stack pointer */
static int inflag;
@@ -560,7 +562,7 @@ decomp(squash, f, t) /* decompress a file */
*/
if (code >= free_ent) {
if (code > free_ent) {
- if (warn) {
+ if (arcwarn) {
printf("Corrupted compressed file.\n");
printf("Invalid code %d when max is %d.\n",
code, free_ent);