X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fio%2Fkfile.c;h=f4df850b1133390743187daeb1d44b771e7121b8;hb=63986411c74bebcda2a19e61a49ad0b0d933aaf7;hp=6113d5f77e6ef0e19538799e08fd30f9f977f1e9;hpb=b46f64914c62fbb0297728280478681659469654;p=bertos.git 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); +} /**