From 3774395c8217cbe5f0cc8cb0bebc247d801a3a12 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 2 Mar 2009 09:44:07 +0000 Subject: [PATCH] cfs example updated --- platform/cooja/testapps/testcfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/cooja/testapps/testcfs.c b/platform/cooja/testapps/testcfs.c index c72239e5d..c2a51b807 100644 --- a/platform/cooja/testapps/testcfs.c +++ b/platform/cooja/testapps/testcfs.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: testcfs.c,v 1.2 2008/10/03 09:39:38 fros4943 Exp $ + * $Id: testcfs.c,v 1.3 2009/03/02 09:44:07 fros4943 Exp $ */ #include "contiki.h" @@ -57,7 +57,7 @@ PROCESS_THREAD(test_cfs_process, ev, data) /* Write to filesystem */ sprintf(buf, "filedata%04ifiledata%04i", counter, counter); fd = cfs_open("filename", CFS_READ | CFS_WRITE); - cfs_seek(fd, 0); + cfs_seek(fd, 0, CFS_SEEK_SET); cfs_write(fd, buf, 24); cfs_close(fd); printf("Wrote to filesystem: '%s'\n", buf); @@ -68,7 +68,7 @@ PROCESS_THREAD(test_cfs_process, ev, data) /* Read from filesystem */ fd = cfs_open("file1", CFS_READ | CFS_WRITE); - cfs_seek(fd, 4); + cfs_seek(fd, 4, CFS_SEEK_SET); cfs_read(fd, buf, 12); cfs_close(fd); buf[12] = '\0';