Fixed compiler warnings to make code compile with gcc's -pedantic switch
This commit is contained in:
parent
33d7c0badd
commit
66b5644e07
1 changed files with 27 additions and 27 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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 <string.h>
|
||||||
#include "lib/simEnvChange.h"
|
#include "lib/simEnvChange.h"
|
||||||
|
@ -73,7 +73,7 @@ cfs_close(int f)
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
int
|
int
|
||||||
cfs_read(int f, char *buf, unsigned int len)
|
cfs_read(int f, void *buf, unsigned int len)
|
||||||
{
|
{
|
||||||
if(f == FLAG_FILE_OPEN) {
|
if(f == FLAG_FILE_OPEN) {
|
||||||
// TODO Should yield a few times?
|
// TODO Should yield a few times?
|
||||||
|
@ -88,7 +88,7 @@ cfs_read(int f, char *buf, unsigned int len)
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
int
|
int
|
||||||
cfs_write(int f, char *buf, unsigned int len)
|
cfs_write(int f, void *buf, unsigned int len)
|
||||||
{
|
{
|
||||||
if(f == FLAG_FILE_OPEN) {
|
if(f == FLAG_FILE_OPEN) {
|
||||||
// TODO Should yield a few times?
|
// TODO Should yield a few times?
|
||||||
|
|
Loading…
Reference in a new issue