changed counters to unsigned

This commit is contained in:
nifi 2007-03-23 15:52:13 +00:00
parent a12359cb5d
commit ae64aa1764

View file

@ -30,7 +30,7 @@
* *
* Author: Adam Dunkels <adam@sics.se> * Author: Adam Dunkels <adam@sics.se>
* *
* $Id: cfs-xmem.c,v 1.2 2007/03/23 12:15:08 nifi Exp $ * $Id: cfs-xmem.c,v 1.3 2007/03/23 15:52:13 nifi Exp $
*/ */
#include "contiki.h" #include "contiki.h"
@ -42,8 +42,8 @@ struct filestate {
int flag; int flag;
#define FLAG_FILE_CLOSED 0 #define FLAG_FILE_CLOSED 0
#define FLAG_FILE_OPEN 1 #define FLAG_FILE_OPEN 1
int fileptr; unsigned int fileptr;
int filesize; unsigned int filesize;
}; };
#ifdef CFS_XMEM_CONF_OFFSET #ifdef CFS_XMEM_CONF_OFFSET
@ -174,6 +174,8 @@ PROCESS_THREAD(cfs_xmem_process, ev, data)
{ {
PROCESS_BEGIN(); PROCESS_BEGIN();
file.fileptr = file.filesize = 0;
SERVICE_REGISTER(cfs_xmem_service); SERVICE_REGISTER(cfs_xmem_service);
PROCESS_WAIT_EVENT_UNTIL(ev == PROCESS_EVENT_SERVICE_REMOVED || PROCESS_WAIT_EVENT_UNTIL(ev == PROCESS_EVENT_SERVICE_REMOVED ||