Initial commit: Uploaded everything from abs/core
[arch-rock.git] / support / isdn4k-utils / isdn4k-utils-gcc4.patch
blobfa16315ffaf98fe8203dfa9d575b0a0bde78ac38
1 --- ./eicon/eiconctrl.c.gcc4 2001-03-01 15:59:12.000000000 +0100
2 +++ ./eicon/eiconctrl.c 2005-07-21 19:37:33.000000000 +0200
3 @@ -1970,7 +1970,7 @@
4 val = strtol(p, &q, 16);
5 p = q;
6 val = strtol(p, &q, 16);
7 - (unsigned short) *buffer = (unsigned short) val;
8 + *buffer = (unsigned short) val;
9 pos = 2;
10 while ((p != q) && (*q != 0)) {
11 p = q;
12 --- ./hisax/hisaxctrl.c.gcc4 2000-06-29 19:38:26.000000000 +0200
13 +++ ./hisax/hisaxctrl.c 2005-07-21 19:21:41.000000000 +0200
14 @@ -43,7 +43,8 @@
15 fprintf(stderr, "cannot open file %s\n", fname);
16 exit(-1);
18 - p = (int *) buffer = (unsigned char *) malloc(MAX_SIZE+4);
19 + buffer = (unsigned char *) malloc(MAX_SIZE+4);
20 + p = (int *) buffer;
21 if (!buffer) {
22 fprintf(stderr, "cannot get %d byte memory\n", MAX_SIZE+4);
23 exit(-1);
24 --- ./ipppd/main.c.gcc4 2002-07-18 02:06:21.000000000 +0200
25 +++ ./ipppd/main.c 2005-07-21 19:39:38.000000000 +0200
26 @@ -1041,9 +1041,14 @@
27 static char line[256]; /* line to be logged accumulated here */
28 static char *linep;
30 +#ifdef __STDC__
31 +static void pr_log(void *arg, char *fmt, ...);
32 +#else /* __STDC__ */
33 +static void pr_log(arg, fmt, va_alist);
34 +#endif
36 void log_packet(u_char *p,int len,char *prefix,int linkunit)
38 - static void pr_log __P((void *, char *, ...));
40 int i, n;
41 u_short proto;
42 --- ./isdnlog/tools/isdnrate.c.gcc4 2002-08-15 19:22:43.000000000 +0200
43 +++ ./isdnlog/tools/isdnrate.c 2005-07-21 19:14:24.000000000 +0200
44 @@ -309,7 +309,7 @@
46 static void print_header(void);
48 -static char *myname, *myshortname;
49 +char *myname, *myshortname;
50 static char options[] = "ab:d:f:h:l:op:st:v::x:CD::G:HLNP:O:S:TUVX::Z";
51 static char usage[] = "%s: usage: %s [ -%s ] Destination ...\n";
53 @@ -318,7 +318,7 @@
54 static int usestat = 0;
55 static int duration = LCR_DURATION;
56 static time_t start;
57 -static int day, month, year, hour, min, sec;
58 +int day, month, year, hour, min, sec;
59 static char ignore[MAXPROVIDER];
60 static char *fromarea = 0;
61 static char wanted_day;