Fixed compiler warnings to make code compile with gcc's -pedantic switch

This commit is contained in:
adamdunkels 2007-11-17 18:01:00 +00:00
parent 607d27e0c6
commit 1e1e44a3f8
42 changed files with 313 additions and 286 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: test-rudolph1.c,v 1.7 2007/05/15 08:10:32 adamdunkels Exp $
* $Id: test-rudolph1.c,v 1.8 2007/11/17 18:09:56 adamdunkels Exp $
*/
/**
@ -51,6 +51,11 @@
#include <stdio.h>
#if NETSIM
#include "ether.h"
#include "node.h"
#endif /* NETSIM */
#define FILESIZE 2000
/*---------------------------------------------------------------------------*/
@ -59,7 +64,7 @@ AUTOSTART_PROCESSES(&test_rudolph1_process);
/*---------------------------------------------------------------------------*/
static void
write_chunk(struct rudolph1_conn *c, int offset, int flag,
char *data, int datalen)
uint8_t *data, int datalen)
{
int fd;
#if NETSIM
@ -111,7 +116,7 @@ write_chunk(struct rudolph1_conn *c, int offset, int flag,
}
}
static int
read_chunk(struct rudolph1_conn *c, int offset, char *to, int maxsize)
read_chunk(struct rudolph1_conn *c, int offset, uint8_t *to, int maxsize)
{
int fd;
int ret;