projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AT91SAM7: EMAC ethernet driver refactoring
[bertos.git]
/
bertos
/
io
/
kfile.c
diff --git
a/bertos/io/kfile.c
b/bertos/io/kfile.c
index 6113d5f77e6ef0e19538799e08fd30f9f977f1e9..f8981180324ce4bb6a36b2c899b5b8d15fa3b073 100644
(file)
--- a/
bertos/io/kfile.c
+++ b/
bertos/io/kfile.c
@@
-195,11
+195,9
@@
kfile_off_t kfile_genericSeek(struct KFile *fd, kfile_off_t offset, KSeekMode wh
break;
}
break;
}
- #if LOG_LEVEL >= LOG_LVL_INFO
/* Bound check */
if (seek_pos + offset > fd->size)
LOG_INFO("seek outside EOF\n");
/* Bound check */
if (seek_pos + offset > fd->size)
LOG_INFO("seek outside EOF\n");
- #endif
fd->seek_pos = seek_pos + offset;
fd->seek_pos = seek_pos + offset;
@@
-220,12
+218,12
@@
struct KFile * kfile_genericReopen(struct KFile *fd)
/**
* Close file \a fd.
/**
* Close file \a fd.
- * This is a generic implementation that only
return 0
.
+ * This is a generic implementation that only
flush the file
.
*/
*/
-int kfile_genericClose(
UNUSED_ARG(struct KFile *, fd)
)
+int kfile_genericClose(
struct KFile *fd
)
{
{
- return
0
;
-}
;
+ return
kfile_flush(fd)
;
+}
/**
/**