make GCC4 happy

This commit is contained in:
Karsten Keil 2005-08-01 12:15:15 +00:00
parent fde251b2af
commit 08139ad536
3 changed files with 10 additions and 5 deletions

View File

@ -34,7 +34,7 @@ unsigned char *buffer = NULL;
#define MAX_SIZE 0x10000
unsigned char *
read_firmware(unsigned char *fname)
read_firmware(char *fname)
{
FILE *infile;
int *p, cnt;
@ -43,7 +43,8 @@ read_firmware(unsigned char *fname)
fprintf(stderr, "cannot open file %s\n", fname);
exit(-1);
}
p = (int *) buffer = (unsigned char *) malloc(MAX_SIZE+4);
buffer = malloc(MAX_SIZE+4);
p = (int *) buffer;
if (!buffer) {
fprintf(stderr, "cannot get %d byte memory\n", MAX_SIZE+4);
exit(-1);

View File

@ -1044,9 +1044,10 @@ void reap_kids()
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;

View File

@ -19,6 +19,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log$
* Revision 1.44 2004/12/18 15:10:50 tobiasb
* Show date with type of day for isdnrate -vT ...
*
* Revision 1.43 2004/09/27 18:00:23 tobiasb
* Check provider and price (new) when comparing provider rankings.
*
@ -324,7 +327,7 @@
static void print_header(void);
static char *myname, *myshortname;
char *myname, *myshortname;
static char options[] = "ab:c:d:f:h:i:l:op:r:st:v::x:CD::G:HLNP:O:S:TUVX::Z";
static char usage[] = "%s: usage: %s [ -%s ] Destination ...\n";
@ -333,7 +336,7 @@ int verbose = 0;
static int usestat = 0;
static int duration = LCR_DURATION;
static time_t start;
static int day, month, year, hour, min, sec;
int day, month, year, hour, min, sec;
static char ignore[MAXPROVIDER];
static char *fromarea = 0;
static char wanted_day;