Fixed compiler warnings to make code compile with gcc's -pedantic switch
This commit is contained in:
parent
607d27e0c6
commit
1e1e44a3f8
42 changed files with 313 additions and 286 deletions
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: ethernode.c,v 1.8 2007/05/22 21:09:19 adamdunkels Exp $
|
||||
* $Id: ethernode.c,v 1.9 2007/11/17 18:09:19 adamdunkels Exp $
|
||||
*/
|
||||
/**
|
||||
* \file
|
||||
|
@ -145,8 +145,8 @@ ethernode_poll(void)
|
|||
return ether_client_poll();
|
||||
}
|
||||
/*-------------------------------------------------------------------------------*/
|
||||
u16_t
|
||||
ethernode_read(u8_t *buf, u16_t bufsize)
|
||||
int
|
||||
ethernode_read(void *buf, unsigned short bufsize)
|
||||
{
|
||||
int len;
|
||||
u8_t tmpbuf[2048];
|
||||
|
@ -216,7 +216,7 @@ ethernode_send(void)
|
|||
}
|
||||
/*-------------------------------------------------------------------------------*/
|
||||
int
|
||||
ethernode_send_buf(const u8_t *buf, u16_t len)
|
||||
ethernode_send_buf(const void *buf, unsigned short len)
|
||||
{
|
||||
char tmpbuf[2048];
|
||||
struct hdr *hdr = (struct hdr *)tmpbuf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue