projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor lm3s flash module to new kblock api.
[bertos.git]
/
bertos
/
io
/
kfile.c
diff --git
a/bertos/io/kfile.c
b/bertos/io/kfile.c
index 6113d5f77e6ef0e19538799e08fd30f9f977f1e9..f4df850b1133390743187daeb1d44b771e7121b8 100644
(file)
--- a/
bertos/io/kfile.c
+++ b/
bertos/io/kfile.c
@@
-220,12
+220,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)
;
+}
/**
/**