derekf pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=8c7086dc310644b701b15ac99b44a12f8d1d84fa
commit 8c7086dc310644b701b15ac99b44a12f8d1d84fa Author: Derek Foreman <der...@osg.samsung.com> Date: Mon Nov 13 16:07:11 2017 -0600 wayland_shm: Make ecore_wl2_buffer_init return bool Nothing uses the returned pointer, and nothing will. --- src/modules/evas/engines/wayland_shm/evas_dmabuf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c index 36b4d79e99..c8a1220e73 100644 --- a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c +++ b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c @@ -409,7 +409,7 @@ _wl_shm_buffer_manager_setup(int fd EINA_UNUSED) return EINA_TRUE; } -static Buffer_Manager * +static Eina_Bool ecore_wl2_buffer_init(Ecore_Wl2_Buffer_Type types) { int fd; @@ -420,7 +420,7 @@ ecore_wl2_buffer_init(Ecore_Wl2_Buffer_Type types) if (buffer_manager) { buffer_manager->refcount++; - return buffer_manager; + return EINA_TRUE; } buffer_manager = calloc(1, sizeof(Buffer_Manager)); @@ -439,7 +439,7 @@ ecore_wl2_buffer_init(Ecore_Wl2_Buffer_Type types) drm_fd = fd; buffer_manager->refcount = 1; - return buffer_manager; + return EINA_TRUE; err_bm: close(fd); @@ -447,7 +447,7 @@ err_drm: free(buffer_manager); err_alloc: dmabuf_totally_hosed = EINA_TRUE; - return NULL; + return EINA_FALSE; } static void --