summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/du/dumpifs/package.patch
blob: 6a1a929b5bfff486015a3be774e21f4ce9953af2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
diff --git a/exMifsLzo.c b/exMifsLzo.c
index 3173db5..a077bbf 100644
--- a/exMifsLzo.c
+++ b/exMifsLzo.c
@@ -73,8 +73,8 @@ int main(int argc, char **argv)
 		printf("Block count=%d Total Size=%d + 2048=%d (%x)\n", v2, v7, v7+2048, v7+2048);
 		v7=0;maxBlkSize=0;
 		if(lzo_init() != LZO_E_OK) {
-			error(1, "decompression init failure");
-			return 0;
+			fprintf(stderr, "decompression init failure");
+			exit(1);
 		}
 
 		for(readBlk=blockInfo;readBlk!=currBlockInfo;readBlk++)
diff --git a/fixdecifs.c b/fixdecifs.c
index 1404732..ebb44a3 100644
--- a/fixdecifs.c
+++ b/fixdecifs.c
@@ -7,6 +7,7 @@
 
 #include "sys/image.h"
 #include "sys/startup.h"
+#include <string.h>
 
 #define ENDIAN_RET32(x)		((((x) >> 24) & 0xff) | \
 							(((x) >> 8) & 0xff00) | \
diff --git a/fixencifs.c b/fixencifs.c
index d52f0fa..d5f69c2 100644
--- a/fixencifs.c
+++ b/fixencifs.c
@@ -3,6 +3,7 @@
 #include <stdarg.h>
 #include "sys/image.h"
 #include "sys/startup.h"
+#include <string.h>
 
 #define ENDIAN_RET32(x)		((((x) >> 24) & 0xff) | \
 							(((x) >> 8) & 0xff00) | \
diff --git a/uuu.c b/uuu.c
index 7f8c712..f245a9b 100644
--- a/uuu.c
+++ b/uuu.c
@@ -1,12 +1,12 @@
 #include <stdio.h>
 #include <ucl/ucl.h>
-
 #ifndef QNX
-#include <error.h>
 #else
 #define error(p,q,r)	printf(r)
 #endif
 
+#include <stdlib.h>
+
 int main(int ac, char**av)
 {
     FILE *fpr, *fpw;
@@ -38,8 +38,8 @@ int main(int ac, char**av)
 				printf("buf[0-4] = %02X %02X %02X %02X, Package %d bytes \n", buf[0], buf[1], buf[2], buf[3], len);
 				status = ucl_nrv2b_99_compress(buf, len, out_buf, &out_len, NULL, 9, NULL, NULL);//= ucl_nrv2b_decompress_8(buf, len, out_buf, &out_len, NULL);
 				if(status != 0) {
-					error(1, 0, "compression failure.\n");
-					break;
+					fprintf(stderr, "compression failure.\n");
+					exit(1);
 				}
 				packSize[0] = (out_len >> 8) & 0xff;
 				packSize[1] = out_len & 0xff;
diff --git a/zzz.c b/zzz.c
index 0870840..d2d86e5 100644
--- a/zzz.c
+++ b/zzz.c
@@ -1,12 +1,13 @@
 #include <stdio.h>
 #ifndef QNX
 #include <lzo/lzo1x.h>
-#include <error.h>
 #else
 #include <lzo1x.h>
 #define error(p,q,r)	printf(r)
 #endif
 
+#include <stdlib.h>
+
 int main(int ac, char**av)
 {
     FILE *fpr, *fpw;
@@ -40,8 +41,8 @@ retry:
 				//status = ucl_nrv2b_99_compress(buf, len, out_buf, &out_len, NULL, 9, NULL, NULL);//= ucl_nrv2b_decompress_8(buf, len, out_buf, &out_len, NULL);
 				status = lzo1x_999_compress(buf, len, out_buf, &out_len, work);
 				if(status != 0) {
-					error(1, 0, "compression failure.\n");
-					break;
+					fprintf(stderr, "compression failure.\n");
+					exit(1);
 				}
 				if(out_len > 0xffff) {
 					printf("!!!! Packed size too big! Need retry!\n");