Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/archivers/arc/files/patch-arcunp.c
16461 views
1
--- arcunp.c.orig 2013-06-27 02:00:19 UTC
2
+++ arcunp.c
3
@@ -37,8 +37,8 @@ extern int lastc;
4
#define NOHIST 0 /* no relevant history */
5
#define INREP 1 /* sending a repeated value */
6
7
-short crcval; /* CRC check value */
8
-long stdlen; /* bytes to read */
9
+extern short crcval; /* CRC check value */
10
+extern long stdlen; /* bytes to read */
11
#if !DOS
12
static int gotcr; /* got a carriage return? */
13
#endif
14
@@ -120,7 +120,7 @@ unpack(f, t, hdr) /* unpack an archive entry */
15
break;
16
17
default: /* unknown method */
18
- if (warn) {
19
+ if (arcwarn) {
20
printf("I don't know how to unpack file %s\n", hdr->name);
21
printf("I think you need a newer version of ARC\n");
22
nerrs++;
23
@@ -132,7 +132,7 @@ unpack(f, t, hdr) /* unpack an archive entry */
24
/* cleanups common to all methods */
25
26
if (crcval != hdr->crc) {
27
- if (warn || kludge) {
28
+ if (arcwarn || kludge) {
29
printf("WARNING: File %s fails CRC check\n", hdr->name);
30
nerrs++;
31
}
32
33