*/
static int battfs_fileclose(struct KFile *fd)
{
- BattFsKFile *fdb = BattFsKFile(fd);
+ BattFsKFile *fdb = BATTFSKFILE(fd);
battfs_flush(fd);
REMOVE(&fdb->link);
*/
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;
* 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;