summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Paalanen <pekka.paalanen@collabora.com>2020-10-21 14:18:30 +0300
committerPekka Paalanen <pekka.paalanen@collabora.com>2020-10-21 14:18:30 +0300
commit82850057443feb3df8b29afeecbfedd44603aede (patch)
tree97a021fd255a2aa4eb5463dd3d7ac767070abca0
parent43141231a0527b91602e04b1e51a3571fdd919d9 (diff)
downloadweston-82850057443feb3df8b29afeecbfedd44603aede.tar.gz
libweston: constify data_source_interface
Found mutable global variables with $ grep -P '^static (?!const).*[=;]' -- compositor libweston shared Mutable global or static variables make it harder to run several compositor instances in the same process. That is what the test suite would probably need to do to test wayland-backend. This one variable does not need to be mutable. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
-rw-r--r--libweston/data-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libweston/data-device.c b/libweston/data-device.c
index 8b0a282f..a69e30f9 100644
--- a/libweston/data-device.c
+++ b/libweston/data-device.c
@@ -401,7 +401,7 @@ data_source_set_actions(struct wl_client *client,
source->actions_set = true;
}
-static struct wl_data_source_interface data_source_interface = {
+static const struct wl_data_source_interface data_source_interface = {
data_source_offer,
data_source_destroy,
data_source_set_actions