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

This commit is contained in:
adamdunkels 2007-11-17 18:26:06 +00:00
parent 33d7c0badd
commit 66b5644e07

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: cfs-cooja.c,v 1.3 2007/11/16 09:21:49 fros4943 Exp $
* $Id: cfs-cooja.c,v 1.4 2007/11/17 18:26:06 adamdunkels Exp $
*/
#include <string.h>
#include "lib/simEnvChange.h"
@ -73,7 +73,7 @@ cfs_close(int f)
}
/*---------------------------------------------------------------------------*/
int
cfs_read(int f, char *buf, unsigned int len)
cfs_read(int f, void *buf, unsigned int len)
{
if(f == FLAG_FILE_OPEN) {
// TODO Should yield a few times?
@ -88,7 +88,7 @@ cfs_read(int f, char *buf, unsigned int len)
}
/*---------------------------------------------------------------------------*/
int
cfs_write(int f, char *buf, unsigned int len)
cfs_write(int f, void *buf, unsigned int len)
{
if(f == FLAG_FILE_OPEN) {
// TODO Should yield a few times?