switched all users of cfs_seek(x,y) to cfs_seek(x,y,CFS_SEEK_SET)

This commit is contained in:
nvt-se 2009-02-27 14:28:02 +00:00
parent 3191a2568c
commit a0226e2418
16 changed files with 55 additions and 55 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: shell-netfile.c,v 1.7 2009/02/24 21:27:43 adamdunkels Exp $
* $Id: shell-netfile.c,v 1.8 2009/02/27 14:28:02 nvt-se Exp $
*/
/**
@ -111,7 +111,7 @@ read_chunk(struct rudolph0_conn *c, int offset, uint8_t *to, int maxsize)
fd = cfs_open(filename, CFS_READ);
cfs_seek(fd, offset);
cfs_seek(fd, offset, CFS_SEEK_SET);
ret = cfs_read(fd, to, maxsize);
/* printf("read_chunk %d bytes at %d, %d\n", ret, offset, (unsigned char)to[0]);*/
cfs_close(fd);