summaryrefslogtreecommitdiffstats
path: root/patches/busybox-1.00/generic/busybox-1.00-gcc4x.diff
blob: 7fee02ded94a46920a979ee3d22a55ab5bcd3da6 (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
# 
# Submitted-By: Benedikt Spranger, 2005-09-17
# Committed-By: Robert Schwebel
#
# Error: 
#
# 
#
# Description: 
#
# Make gcc 4.x happy.
#
# State:
# 
# unknown
#

diff -ruN busybox-1.00.orig/archival/gzip.c busybox-1.00/archival/gzip.c
--- busybox-1.00.orig/archival/gzip.c	2004-04-14 19:51:08.000000000 +0200
+++ busybox-1.00/archival/gzip.c	2005-09-15 15:47:31.039172143 +0200
@@ -1640,7 +1640,7 @@
 static void build_tree(tree_desc * desc);
 static void scan_tree(ct_data * tree, int max_code);
 static void send_tree(ct_data * tree, int max_code);
-static int build_bl_tree(void);
+static const int build_bl_tree(void);
 static void send_all_trees(int lcodes, int dcodes, int blcodes);
 static void compress_block(ct_data * ltree, ct_data * dtree);
 static void set_file_type(void);
diff -ruN busybox-1.00.orig/networking/ifupdown.c busybox-1.00/networking/ifupdown.c
--- busybox-1.00.orig/networking/ifupdown.c	2004-09-14 19:24:58.000000000 +0200
+++ busybox-1.00/networking/ifupdown.c	2005-09-15 15:48:36.452394277 +0200
@@ -150,7 +150,7 @@
 
 static char no_act = 0;
 static char verbose = 0;
-static char **environ = NULL;
+char **environ = NULL;
 
 #ifdef CONFIG_FEATURE_IFUPDOWN_IP