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

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: psock.c,v 1.4 2007/09/08 16:12:54 matsutsuka Exp $
* $Id: psock.c,v 1.5 2007/11/17 18:05:21 adamdunkels Exp $
*/
#include <stdio.h>
@ -171,7 +171,7 @@ data_acked(CC_REGISTER_ARG struct psock *s)
return 0;
}
/*---------------------------------------------------------------------------*/
PT_THREAD(psock_send(CC_REGISTER_ARG struct psock *s, const char *buf,
PT_THREAD(psock_send(CC_REGISTER_ARG struct psock *s, const uint8_t *buf,
unsigned int len))
{
PT_BEGIN(&s->psockpt);
@ -322,7 +322,8 @@ PT_THREAD(psock_readbuf(CC_REGISTER_ARG struct psock *psock))
}
/*---------------------------------------------------------------------------*/
void
psock_init(CC_REGISTER_ARG struct psock *psock, char *buffer, unsigned int buffersize)
psock_init(CC_REGISTER_ARG struct psock *psock,
uint8_t *buffer, unsigned int buffersize)
{
psock->state = STATE_NONE;
psock->readlen = 0;