summaryrefslogtreecommitdiff
path: root/src/bin/evas
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-13 15:24:00 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-13 15:24:00 +0900
commit6974a67f6f5126c9e413f8922ede2e8c7e4e237b (patch)
tree2e872a0759847ea50f37396d4cc7ce62e34fa32b /src/bin/evas
parent8a7e70705ca05b05d26cb2c3e2527dc1e9673ef0 (diff)
evas - cserve - dummy slave - shut coverity up and unmap mmaped mem
while right, coverity doest know that this is just a dummy example, so... make it happy by unmapping. fixes CID 1193218
Diffstat (limited to 'src/bin/evas')
-rw-r--r--src/bin/evas/dummy_slave.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/evas/dummy_slave.c b/src/bin/evas/dummy_slave.c
index fb57250681..e98c3455fd 100644
--- a/src/bin/evas/dummy_slave.c
+++ b/src/bin/evas/dummy_slave.c
@@ -110,13 +110,11 @@ _cserve2_shm_map(const char *name, size_t length, off_t offset)
110 return map; 110 return map;
111} 111}
112 112
113/*
114static void 113static void
115_cserve2_shm_unmap(void *map, size_t length) 114_cserve2_shm_unmap(void *map, size_t length)
116{ 115{
117 munmap(map, length); 116 munmap(map, length);
118} 117}
119*/
120 118
121static Error_Type 119static Error_Type
122image_open(const char *file EINA_UNUSED, const char *key EINA_UNUSED, Slave_Msg_Image_Opened *result) 120image_open(const char *file EINA_UNUSED, const char *key EINA_UNUSED, Slave_Msg_Image_Opened *result)
@@ -140,6 +138,7 @@ image_load(const char *shmfile, Slave_Msg_Image_Load *params)
140 return CSERVE2_RESOURCE_ALLOCATION_FAILED; 138 return CSERVE2_RESOURCE_ALLOCATION_FAILED;
141 139
142 memset(map + params->shm.image_offset, 'A', params->shm.image_size); 140 memset(map + params->shm.image_offset, 'A', params->shm.image_size);
141 _cserve2_shm_unmap(map, params->shm.mmap_size);
143 142
144 return CSERVE2_NONE; 143 return CSERVE2_NONE;
145} 144}