From e3180b9c694d1458b9784ac6504764799421354c Mon Sep 17 00:00:00 2001 From: qwert Date: Mon, 4 Aug 2008 16:07:21 +0000 Subject: [PATCH] Fix refactor. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1543 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/fs/battfs.c | 4 ++-- bertos/fs/battfs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bertos/fs/battfs.c b/bertos/fs/battfs.c index 3a5d90b0..c940bad1 100644 --- a/bertos/fs/battfs.c +++ b/bertos/fs/battfs.c @@ -611,7 +611,7 @@ static int battfs_flush(struct KFile *fd) */ static int battfs_fileclose(struct KFile *fd) { - BattFsKFile *fdb = BattFsKFile(fd); + BattFsKFile *fdb = BATTFSKFILE(fd); battfs_flush(fd); REMOVE(&fdb->link); @@ -624,7 +624,7 @@ static int battfs_fileclose(struct KFile *fd) */ static size_t battfs_read(struct KFile *fd, void *_buf, size_t size) { - BattFsKFile *fdb = BattFsKFile(fd); + BattFsKFile *fdb = BATTFSKFILE(fd); uint8_t *buf = (uint8_t *)_buf; size_t total_read = 0; diff --git a/bertos/fs/battfs.h b/bertos/fs/battfs.h index 5dace139..afe69f5e 100644 --- a/bertos/fs/battfs.h +++ b/bertos/fs/battfs.h @@ -247,7 +247,7 @@ typedef struct BattFsKFile * Macro used to cast a KFile to a BattFsKFile. * Also perform dynamic type check. */ -INLINE BattFsKFile * BattFsKFile(KFile *fd) +INLINE BattFsKFile * BATTFSKFILE(KFile *fd) { ASSERT(fd->_type == KFT_BATTFS); return (BattFsKFile *)fd; -- 2.25.1