]> Chaos Git - corbenik/ctrulib.git/commitdiff
return offset in sdmc_seek
authormtheall <pigman46@gmail.com>
Thu, 30 Oct 2014 18:49:00 +0000 (13:49 -0500)
committermtheall <pigman46@gmail.com>
Thu, 30 Oct 2014 18:49:00 +0000 (13:49 -0500)
libctru/source/sdmc_dev.c

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