|
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/base/isdn4k-utils/gcc40.patch
|
|
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
|
|
#
|
|
# This patch file is dual-licensed. It is available under the license the
|
|
# patched project is licensed under, as long as it is an OpenSource license
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
|
# of the GNU General Public License as published by the Free Software
|
|
# Foundation; either version 2 of the License, or (at your option) any later
|
|
# version.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
diff -dur isdn4k-utils/hisax/hisaxctrl.c isdn4k-utils-p/hisax/hisaxctrl.c
|
|
--- isdn4k-utils/hisax/hisaxctrl.c 2000-06-30 11:37:38.000000000 +0200
|
|
+++ isdn4k-utils-p/hisax/hisaxctrl.c 2005-10-21 00:17:49.000000000 +0200
|
|
@@ -43,7 +43,7 @@
|
|
fprintf(stderr, "cannot open file %s\n", fname);
|
|
exit(-1);
|
|
}
|
|
- p = (int *) buffer = (unsigned char *) malloc(MAX_SIZE+4);
|
|
+ buffer = p = (unsigned char *) malloc(MAX_SIZE+4);
|
|
if (!buffer) {
|
|
fprintf(stderr, "cannot get %d byte memory\n", MAX_SIZE+4);
|
|
exit(-1);
|
|
diff -dur isdn4k-utils/ipppd/main.c isdn4k-utils-p/ipppd/main.c
|
|
--- isdn4k-utils/ipppd/main.c 2002-07-18 02:06:21.000000000 +0200
|
|
+++ isdn4k-utils-p/ipppd/main.c 2005-10-21 00:19:22.000000000 +0200
|
|
@@ -1041,9 +1041,10 @@
|
|
static char line[256]; /* line to be logged accumulated here */
|
|
static char *linep;
|
|
|
|
+static void pr_log __P((void *, char *, ...));
|
|
+
|
|
void log_packet(u_char *p,int len,char *prefix,int linkunit)
|
|
{
|
|
- static void pr_log __P((void *, char *, ...));
|
|
|
|
int i, n;
|
|
u_short proto;
|
|
diff -dur isdn4k-utils/isdnlog/tools/isdnrate.c isdn4k-utils-p/isdnlog/tools/isdnrate.c
|
|
--- isdn4k-utils/isdnlog/tools/isdnrate.c 2001-06-21 18:34:56.000000000 +0200
|
|
+++ isdn4k-utils-p/isdnlog/tools/isdnrate.c 2005-10-21 00:12:22.000000000 +0200
|
|
@@ -304,7 +304,7 @@
|
|
|
|
static void print_header(void);
|
|
|
|
-static char *myname, *myshortname;
|
|
+char *myname, *myshortname;
|
|
static char options[] = "ab:d:f:h:l:op:st:v::x:CD::G:HLNP:O:S:TUVX::Z";
|
|
static char usage[] = "%s: usage: %s [ -%s ] Destination ...\n";
|
|
|
|
@@ -313,7 +313,8 @@
|
|
static int usestat = 0;
|
|
static int duration = LCR_DURATION;
|
|
static time_t start;
|
|
-static int day, month, year, hour, min, sec;
|
|
+int day, month, hour;
|
|
+static int year, min, sec;
|
|
static char ignore[MAXPROVIDER];
|
|
static char *fromarea = 0;
|
|
static char wanted_day;
|