[PATCH v16 01/23] compositor-drm: Property accessor can be const
Daniel Stone
daniels at collabora.com
Thu Jul 5 17:16:28 UTC 2018
Since it doesn't write to the parameter, we can make it const.
Signed-off-by: Daniel Stone <daniels at collabora.com>
---
libweston/compositor-drm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index b96e29671..c6b82ac44 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -568,7 +568,7 @@ to_drm_mode(struct weston_mode *base)
*/
static uint64_t
drm_property_get_value(struct drm_property_info *info,
- drmModeObjectPropertiesPtr props,
+ const drmModeObjectProperties *props,
uint64_t def)
{
unsigned int i;
--
2.17.1
More information about the wayland-devel
mailing list