return offset in sdmc_seek

This commit is contained in:
mtheall 2014-10-30 13:49:00 -05:00
parent cdd066a4ba
commit 498bc24808

View File

@ -340,7 +340,7 @@ sdmc_read(struct _reent *r,
* @param[in] pos Offset to seek to * @param[in] pos Offset to seek to
* @param[in] whence Where to seek from * @param[in] whence Where to seek from
* *
* @returns 0 for success * @returns new offset for success
* @returns -1 for error * @returns -1 for error
*/ */
static off_t static off_t
@ -394,7 +394,7 @@ sdmc_seek(struct _reent *r,
/* update the current offset */ /* update the current offset */
file->offset = offset + pos; file->offset = offset + pos;
return 0; return file->offset;
} }
/*! Get file stats from an open file /*! Get file stats from an open file