From: batt Date: Sat, 24 Jul 2010 10:23:46 +0000 (+0000) Subject: Flush kfile in generic kfile_close implementation. X-Git-Tag: 2.6.0~293 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=9361e96cadbf1ee8345957c88764097a0c9ec2d3;p=bertos.git Flush kfile in generic kfile_close implementation. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4064 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/io/kfile.c b/bertos/io/kfile.c index 6113d5f7..f4df850b 100644 --- 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. - * 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); +} /**