From 9361e96cadbf1ee8345957c88764097a0c9ec2d3 Mon Sep 17 00:00:00 2001 From: batt Date: Sat, 24 Jul 2010 10:23:46 +0000 Subject: [PATCH] Flush kfile in generic kfile_close implementation. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4064 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/io/kfile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); +} /** -- 2.25.1