From 93e3e8f3864436d67bba617df5565680c3997542 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Thu, 4 Aug 2016 23:47:35 +0200 Subject: lib: shm_du_map: Fix disabling MULTI_BLOCK --- src/lib/shm_du_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/shm_du_map.c b/src/lib/shm_du_map.c index d88e5c84..6527e035 100644 --- a/src/lib/shm_du_map.c +++ b/src/lib/shm_du_map.c @@ -412,8 +412,8 @@ ssize_t shm_du_map_write(struct shm_du_map * dum, #ifdef SHM_DU_MAP_MULTI_BLOCK long blocks = 0; long padblocks = 0; - int sz = size + sizeof *sdb; #endif + int sz = size + sizeof *sdb; uint8_t * write_pos; ssize_t idx = -1; @@ -497,8 +497,8 @@ ssize_t shm_du_map_write_b(struct shm_du_map * dum, #ifdef SHM_DU_MAP_MULTI_BLOCK long blocks = 0; long padblocks = 0; - int sz = size + sizeof *sdb; #endif + int sz = size + sizeof *sdb; uint8_t * write_pos; ssize_t idx = -1; -- cgit v1.2.3