From d15d9a8f91b8cf071c8d635d4643789104a3dcd8 Mon Sep 17 00:00:00 2001 From: gkostka Date: Fri, 16 Oct 2015 16:27:33 +0200 Subject: [PATCH] Introduce EXT4_BLOCK_ZERO macro to initialize ext4_block --- lwext4/ext4_bcache.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lwext4/ext4_bcache.h b/lwext4/ext4_bcache.h index e080664..ce1ffc7 100644 --- a/lwext4/ext4_bcache.h +++ b/lwext4/ext4_bcache.h @@ -42,6 +42,8 @@ #include #include +#define EXT4_BLOCK_ZERO() {.dirty = 0, .lb_id = 0, .cache_id = 0, .data = 0} + /**@brief Single block descriptor*/ struct ext4_block { /**@brief Dirty flag*/