On Thu,  5 Jul 2018 18:16:28 +0100
Daniel Stone <dani...@collabora.com> wrote:

> Since it doesn't write to the parameter, we can make it const.
> 
> Signed-off-by: Daniel Stone <dani...@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;

Hi,

'info' could be similarly const too.

Reviewed-by: Pekka Paalanen <pekka.paala...@collabora.co.uk>


Thanks,
pq

Attachment: pgpmzsHpQfxQF.pgp
Description: OpenPGP digital signature

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to