X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fio%2Fkfile.c;h=f4df850b1133390743187daeb1d44b771e7121b8;hb=f5b88e684870201a83c4f21299dccc16007ab928;hp=d98f15484ef6a3a7c71c1832f5b7c9d95c91892a;hpb=911d2706a86d326786bfe721dcc3d63aeade7f28;p=bertos.git diff --git a/bertos/io/kfile.c b/bertos/io/kfile.c index d98f1548..f4df850b 100644 --- a/bertos/io/kfile.c +++ b/bertos/io/kfile.c @@ -33,7 +33,6 @@ * * This module implements some generic I/O interfaces for kfile. * - * \version $Id$ * \author Francesco Sacchi * \author Daniele Basile */ @@ -221,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); +} /**