Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/archivers/bzip/files/patch-bzip.c
16462 views
1
--- bzip.c.orig 1996-08-30 20:35:28 UTC
2
+++ bzip.c
3
@@ -114,9 +114,13 @@
4
--*/
5
6
#if BZ_UNIX_32
7
+ #include <sys/types.h>
8
#include <utime.h>
9
#include <unistd.h>
10
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) \
11
+ && !defined(__DragonFly__) /* stdlib already included above */
12
#include <malloc.h>
13
+#endif
14
#include <sys/stat.h>
15
#include <sys/times.h>
16
17
@@ -2578,7 +2582,7 @@ void bitStreamEOF ()
18
19
20
/*---------------------------------------------*/
21
-void mySignalCatcher ( IntNative *n )
22
+void mySignalCatcher (int n __unused)
23
{
24
fprintf ( stderr,
25
"\n%s: Control-C (or similar) caught, quitting.\n",
26
@@ -2588,7 +2592,7 @@ void mySignalCatcher ( IntNative *n )
27
28
29
/*---------------------------------------------*/
30
-void mySIGSEGVorSIGBUScatcher ( IntNative *n )
31
+void mySIGSEGVorSIGBUScatcher (int n __unused)
32
{
33
if (compressing)
34
fprintf ( stderr,
35
@@ -3130,11 +3134,6 @@ IntNative main ( IntNative argc, Char *a
36
signal (SIGBUS, mySIGSEGVorSIGBUScatcher);
37
#endif
38
39
- if ( ! (argc > 1 && strcmp ( "-Q", argv[1] ) == 0) )
40
- fprintf ( stderr,
41
- "BZIP, a block-sorting file compressor. "
42
- "Version 0.21, 25-August-96.\n" );
43
-
44
#if DEBUG
45
if ( ! (argc > 1 && strcmp ( "-Q", argv[1] ) == 0) )
46
fprintf ( stderr, "BZIP: *** compiled with debugging ON ***\n" );
47
@@ -3205,6 +3204,12 @@ IntNative main ( IntNative argc, Char *a
48
break;
49
}
50
51
+ if (verbose) {
52
+ fprintf ( stderr,
53
+ "BZIP, a block-sorting file compressor. "
54
+ "Version 0.21, 25-August-96.\n" );
55
+ }
56
+
57
if ( opMode == OM_FILE_TO_STDOUT && numFileNames != 1) {
58
fprintf ( stderr, "%s: Option -c requires you to supply exactly one filename.\n",
59
progName );
60
61