Path: blob/main/archivers/arc/files/patch-arcunp.c
16461 views
--- arcunp.c.orig 2013-06-27 02:00:19 UTC1+++ arcunp.c2@@ -37,8 +37,8 @@ extern int lastc;3#define NOHIST 0 /* no relevant history */4#define INREP 1 /* sending a repeated value */56-short crcval; /* CRC check value */7-long stdlen; /* bytes to read */8+extern short crcval; /* CRC check value */9+extern long stdlen; /* bytes to read */10#if !DOS11static int gotcr; /* got a carriage return? */12#endif13@@ -120,7 +120,7 @@ unpack(f, t, hdr) /* unpack an archive entry */14break;1516default: /* unknown method */17- if (warn) {18+ if (arcwarn) {19printf("I don't know how to unpack file %s\n", hdr->name);20printf("I think you need a newer version of ARC\n");21nerrs++;22@@ -132,7 +132,7 @@ unpack(f, t, hdr) /* unpack an archive entry */23/* cleanups common to all methods */2425if (crcval != hdr->crc) {26- if (warn || kludge) {27+ if (arcwarn || kludge) {28printf("WARNING: File %s fails CRC check\n", hdr->name);29nerrs++;30}313233