diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-04 23:47:35 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-04 23:47:35 +0200 |
commit | 93e3e8f3864436d67bba617df5565680c3997542 (patch) | |
tree | 0e76797e72af4d191f08fcd92c484d1799b8b906 /src/lib | |
parent | c3cf25012053338c0d4fd8fce4e8d94f141603b3 (diff) | |
download | ouroboros-93e3e8f3864436d67bba617df5565680c3997542.tar.gz ouroboros-93e3e8f3864436d67bba617df5565680c3997542.zip |
lib: shm_du_map: Fix disabling MULTI_BLOCK
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/shm_du_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |