]> git.pld-linux.org Git - packages/squid.git/blob - squid-2.5.STABLE3-gcc-3_3.patch
- updated to 2.5.STABLE13
[packages/squid.git] / squid-2.5.STABLE3-gcc-3_3.patch
1 Index: squid/lib/radix.c
2 diff -c squid/lib/radix.c:1.16 squid/lib/radix.c:1.16.2.1
3 *** squid/lib/radix.c:1.16      Tue Nov 13 12:24:34 2001
4 --- squid/lib/radix.c   Wed Jun 18 17:53:34 2003
5 ***************
6 *** 113,121 ****
7   
8   #include "radix.h"
9   
10   int squid_max_keylen;
11   struct squid_radix_mask *squid_rn_mkfreelist;
12 ! struct squid_radix_node_head *squid_mask_rnhead;
13   static char *addmask_key;
14   static unsigned char normal_chars[] =
15   {0, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xFF};
16 --- 113,127 ----
17   
18   #include "radix.h"
19   
20
21   int squid_max_keylen;
22   struct squid_radix_mask *squid_rn_mkfreelist;
23 ! /* Silly construct to get rid of GCC-3.3 warning about type-punning */
24 ! union {
25 !       struct squid_radix_node_head *rn;
26 !       void *ptr;
27 ! } squid_mask_rnhead_u;
28 ! #define squid_mask_rnhead squid_mask_rnhead_u.rn
29   static char *addmask_key;
30   static unsigned char normal_chars[] =
31   {0, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xFF};
32 ***************
33 *** 981,987 ****
34       addmask_key = cplim = rn_ones + squid_max_keylen;
35       while (cp < cplim)
36         *cp++ = -1;
37 !     if (squid_rn_inithead((void **) &squid_mask_rnhead, 0) == 0) {
38         fprintf(stderr, "rn_init2 failed.\n");
39         exit(-1);
40       }
41 --- 987,993 ----
42       addmask_key = cplim = rn_ones + squid_max_keylen;
43       while (cp < cplim)
44         *cp++ = -1;
45 !     if (squid_rn_inithead(&squid_mask_rnhead_u.ptr, 0) == 0) {
46         fprintf(stderr, "rn_init2 failed.\n");
47         exit(-1);
48       }
49 Index: squid/lib/rfc1738.c
50 diff -c squid/lib/rfc1738.c:1.23 squid/lib/rfc1738.c:1.23.2.1
51 *** squid/lib/rfc1738.c:1.23    Wed Feb  7 11:56:51 2001
52 --- squid/lib/rfc1738.c Wed Jun 18 17:53:34 2003
53 ***************
54 *** 128,135 ****
55             do_escape = 1;
56         }
57         /* RFC 1738 says any non-US-ASCII are encoded */
58 !       if (((unsigned char) *p >= (unsigned char) 0x80) &&
59 !           ((unsigned char) *p <= (unsigned char) 0xFF)) {
60             do_escape = 1;
61         }
62         /* Do the triplet encoding, or just copy the char */
63 --- 128,134 ----
64             do_escape = 1;
65         }
66         /* RFC 1738 says any non-US-ASCII are encoded */
67 !       if (((unsigned char) *p >= (unsigned char) 0x80)) {
68             do_escape = 1;
69         }
70         /* Do the triplet encoding, or just copy the char */
71 Index: squid/src/asn.c
72 diff -c squid/src/asn.c:1.78 squid/src/asn.c:1.78.2.1
73 *** squid/src/asn.c:1.78        Tue Nov 13 12:24:35 2001
74 --- squid/src/asn.c     Wed Jun 18 17:53:34 2003
75 ***************
76 *** 50,56 ****
77   /* END of definitions for radix tree entries */
78   
79   /* Head for ip to asn radix tree */
80 ! struct squid_radix_node_head *AS_tree_head;
81   
82   /*
83    * Structure for as number information. it could be simply 
84 --- 50,62 ----
85   /* END of definitions for radix tree entries */
86   
87   /* Head for ip to asn radix tree */
88 ! /* Silly union construct to get rid of GCC-3.3 warning */
89 ! union {
90 !     struct squid_radix_node_head *rn;
91 !     void *ptr;
92 ! } AS_tree_head_u;
93
94 ! #define AS_tree_head AS_tree_head_u.rn
95   
96   /*
97    * Structure for as number information. it could be simply 
98 ***************
99 *** 160,166 ****
100       CBDATA_INIT_TYPE(ASState);
101       if (0 == inited++)
102         squid_rn_init();
103 !     squid_rn_inithead((void **) &AS_tree_head, 8);
104       asnAclInitialize(Config.aclList);
105       cachemgrRegister("asndb", "AS Number Database", asnStats, 0, 1);
106   }
107 --- 166,172 ----
108       CBDATA_INIT_TYPE(ASState);
109       if (0 == inited++)
110         squid_rn_init();
111 !     squid_rn_inithead(&AS_tree_head_u.ptr, 8);
112       asnAclInitialize(Config.aclList);
113       cachemgrRegister("asndb", "AS Number Database", asnStats, 0, 1);
114   }
115 Index: squid/src/delay_pools.c
116 diff -c squid/src/delay_pools.c:1.19.2.7 squid/src/delay_pools.c:1.19.2.8
117 *** squid/src/delay_pools.c:1.19.2.7    Sun Mar  9 11:41:27 2003
118 --- squid/src/delay_pools.c     Wed Jun 18 17:53:35 2003
119 ***************
120 *** 397,403 ****
121         position |= 255;
122         if (!(delay_data[pool].class3->individual_255_used[i / 8] & (1 << (i % 8)))) {
123             delay_data[pool].class3->individual_255_used[i / 8] |= (1 << (i % 8));
124 -           assert(position < C3_IND_SZ);
125             delay_data[pool].class3->individual[position] =
126                 (int) (((double) Config.Delay.rates[pool]->individual.max_bytes *
127                     Config.Delay.initial) / 100);
128 --- 397,402 ----
129 ***************
130 *** 415,421 ****
131             assert(j < (IND_MAP_SZ - 1));
132             delay_data[pool].class3->individual_map[i][j + 1] = 255;
133             position |= j;
134 -           assert(position < C3_IND_SZ);
135             delay_data[pool].class3->individual[position] =
136                 (int) (((double) Config.Delay.rates[pool]->individual.max_bytes *
137                     Config.Delay.initial) / 100);
138 --- 414,419 ----
139 Index: squid/src/snmp_core.c
140 diff -c squid/src/snmp_core.c:1.51.2.2 squid/src/snmp_core.c:1.51.2.3
141 *** squid/src/snmp_core.c:1.51.2.2      Thu Feb 14 12:02:17 2002
142 --- squid/src/snmp_core.c       Wed Jun 18 17:53:35 2003
143 ***************
144 *** 607,616 ****
145             return (Answer);
146         } else if (PDU->command == SNMP_PDU_GETNEXT) {
147             oid *NextOidName = NULL;
148 !           int NextOidNameLen = 0;
149   
150             ParseFn = snmpTreeNext(PDU->variables->name, PDU->variables->name_length,
151 !               &(NextOidName), (snint *) & NextOidNameLen);
152   
153             if (ParseFn == NULL) {
154                 Answer->errstat = SNMP_ERR_NOSUCHNAME;
155 --- 607,616 ----
156             return (Answer);
157         } else if (PDU->command == SNMP_PDU_GETNEXT) {
158             oid *NextOidName = NULL;
159 !           snint NextOidNameLen = 0;
160   
161             ParseFn = snmpTreeNext(PDU->variables->name, PDU->variables->name_length,
162 !               &NextOidName, &NextOidNameLen);
163   
164             if (ParseFn == NULL) {
165                 Answer->errstat = SNMP_ERR_NOSUCHNAME;
This page took 0.048442 seconds and 3 git commands to generate.