From: Yong Bakos Date: Fri, 12 Aug 2016 19:04:41 +0000 (-0700) Subject: shm: Make shm_pool_interface static const X-Git-Tag: 1.12.91~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da58e07c3d30978470a4bb7332277c9e6fdf401f;p=platform%2Fupstream%2Fwayland.git shm: Make shm_pool_interface static const Add static const modifiers to the shm_pool_interface definition, making it consistent with the other wl_*_interface definitions and mundanely safer. Note that this does not affect the ABI, according to abi-dumper and abi-compliance-checker[1]; and weston and its shm-backed clients still run as expected. [1]: http://lvc.github.io/abi-compliance-checker/ Signed-off-by: Yong Bakos Tested-by: Yong Bakos Acked-by: Bryce Harrington Reviewed-by: Pekka Paalanen --- diff --git a/src/wayland-shm.c b/src/wayland-shm.c index 7fea364..8e2ef77 100644 --- a/src/wayland-shm.c +++ b/src/wayland-shm.c @@ -247,7 +247,7 @@ shm_pool_resize(struct wl_client *client, struct wl_resource *resource, shm_pool_finish_resize(pool); } -struct wl_shm_pool_interface shm_pool_interface = { +static const struct wl_shm_pool_interface shm_pool_interface = { shm_pool_create_buffer, shm_pool_destroy, shm_pool_resize