1 diff -Naur linux-atm-2.4.1-orig/src/ilmid/atmf_uni.c linux-atm-2.4.1/src/ilmid/atmf_uni.c
2 --- linux-atm-2.4.1-orig/src/ilmid/atmf_uni.c 2001-09-03 19:41:06.000000000 +0100
3 +++ linux-atm-2.4.1/src/ilmid/atmf_uni.c 2005-08-13 10:22:44.000000000 +0100
5 newPrefix->name = alloc_t(AsnOid);
6 newPrefix->name->octs = alloc(varBindName->octetLen);
7 AsnOidCopy(newPrefix->name, varBindName);
8 - Q_INSERT_BEFORE((NetPrefixNode *) var->value, newPrefix, prefix);
9 + Q_INSERT_BEFORE((*((NetPrefixNode **)&var->value)), newPrefix, prefix);
10 if(atmNetPrefix.octs == NULL)
12 atmNetPrefix.octetLen = varBindName->octetLen - NETPREFIX_LEN - 2;
15 else if (varbind->value->a.simple->a.number == INVALID && cmp == AsnOidEqual)
17 - Q_REMOVE((NetPrefixNode *) var->value, prefix);
18 + Q_REMOVE((*((NetPrefixNode **) &var->value)), prefix);
22 diff -Naur linux-atm-2.4.1-orig/src/lib/sapequal.c linux-atm-2.4.1/src/lib/sapequal.c
23 --- linux-atm-2.4.1-orig/src/lib/sapequal.c 2001-09-03 19:41:05.000000000 +0100
24 +++ linux-atm-2.4.1/src/lib/sapequal.c 2005-02-06 19:24:37.000000000 +0000
26 CHECK(l2.itu.window,a.l2.itu.window > b.l2.itu.window);
34 if (a.l3.user != b.l3.user) return 0;
41 diff -Naur linux-atm-2.4.1-orig/src/maint/atmtcp.c linux-atm-2.4.1/src/maint/atmtcp.c
42 --- linux-atm-2.4.1-orig/src/maint/atmtcp.c 2001-09-03 19:41:06.000000000 +0100
43 +++ linux-atm-2.4.1/src/maint/atmtcp.c 2005-08-13 10:22:44.000000000 +0100
45 static IN *inputs = NULL;
48 -static int debug = 0;
53 diff -Naur linux-atm-2.4.1-orig/src/maint/enitune.c linux-atm-2.4.1/src/maint/enitune.c
54 --- linux-atm-2.4.1-orig/src/maint/enitune.c 2001-09-03 19:41:06.000000000 +0100
55 +++ linux-atm-2.4.1/src/maint/enitune.c 2005-02-06 19:24:37.000000000 +0000
57 if (*end || mult.rx <= 100) usage(name);
62 if (argc != optind+1) usage(name);
63 sioc.number = strtol(argv[optind],&end,0);
64 diff -Naur linux-atm-2.4.1-orig/src/mpoad/p_factory.c linux-atm-2.4.1/src/mpoad/p_factory.c
65 --- linux-atm-2.4.1-orig/src/mpoad/p_factory.c 2001-09-03 19:41:06.000000000 +0100
66 +++ linux-atm-2.4.1/src/mpoad/p_factory.c 2005-08-13 10:22:44.000000000 +0100
68 * beginning at location "addr".
71 + uint16_t *addr16 = addr;
74 /* This is the inner loop */
75 - sum += * ((uint16_t *) addr)++;
80 /* Add left-over byte, if any */
82 - sum += * (unsigned char *) addr;
83 + sum += * (unsigned char *) addr16;
85 /* Fold 32-bit sum to 16 bits */
87 diff -Naur linux-atm-2.4.1-orig/src/qgen/qlib.c linux-atm-2.4.1/src/qgen/qlib.c
88 --- linux-atm-2.4.1-orig/src/qgen/qlib.c 2001-09-03 19:41:05.000000000 +0100
89 +++ linux-atm-2.4.1/src/qgen/qlib.c 2005-08-13 10:22:44.000000000 +0100
94 -static int debug = 0;
97 void PREFIX(report)(int severity,const char *msg,...)
105 int main(int argc,const char **argv)
107 unsigned char msg[5000]; /* should be large enough for that */
108 diff -Naur linux-atm-2.4.1-orig/src/qgen/qlib.h linux-atm-2.4.1/src/qgen/qlib.h
109 --- linux-atm-2.4.1-orig/src/qgen/qlib.h 2001-09-03 19:41:05.000000000 +0100
110 +++ linux-atm-2.4.1/src/qgen/qlib.h 2005-08-13 10:22:44.000000000 +0100
116 extern void q_report(int severity,const char *msg,...);
119 diff -Naur linux-atm-2.4.1-orig/src/sigd/proto.c linux-atm-2.4.1/src/sigd/proto.c
120 --- linux-atm-2.4.1-orig/src/sigd/proto.c 2001-09-03 19:41:06.000000000 +0100
121 +++ linux-atm-2.4.1/src/sigd/proto.c 2005-02-06 19:24:37.000000000 +0000
129 if ((size = q_close(&dsc)) >= 0) to_signaling(sock->sig,q_buffer,size);
138 diff -Naur linux-atm-2.4.1-orig/src/switch/debug/debug.c linux-atm-2.4.1/src/switch/debug/debug.c
139 --- linux-atm-2.4.1-orig/src/switch/debug/debug.c 2001-09-03 19:41:06.000000000 +0100
140 +++ linux-atm-2.4.1/src/switch/debug/debug.c 2005-08-13 10:22:44.000000000 +0100
142 #define COMPONENT "FAB(debug)"
145 -#define PRV(call) ((FAB *) (call)->fab)
146 +#define PRV(call) (*((FAB **) &(call)->fab))
149 typedef struct _fab {
150 diff -Naur linux-atm-2.4.1-orig/src/switch/tcp/tcpsw.c linux-atm-2.4.1/src/switch/tcp/tcpsw.c
151 --- linux-atm-2.4.1-orig/src/switch/tcp/tcpsw.c 2001-09-03 19:41:06.000000000 +0100
152 +++ linux-atm-2.4.1/src/switch/tcp/tcpsw.c 2005-08-13 10:22:44.000000000 +0100
155 #define COMPONENT "FAB(tcp)"
157 -#define PRV(call) ((FAB *) (call)->fab)
158 +#define PRV(call) (*((FAB **) &(call)->fab))