xf86drmMode: make drm_property_type_is arg const

This function only needs read-only access to the property. This is
not a breaking ABI change.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
main
Simon Ser 2021-06-15 14:46:05 +02:00
parent f9c27a9e8c
commit e939bd1e8c
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ typedef struct _drmModeProperty {
uint32_t *blob_ids; /* store the blob IDs */ uint32_t *blob_ids; /* store the blob IDs */
} drmModePropertyRes, *drmModePropertyPtr; } drmModePropertyRes, *drmModePropertyPtr;
static __inline int drm_property_type_is(drmModePropertyPtr property, static __inline int drm_property_type_is(const drmModePropertyPtr property,
uint32_t type) uint32_t type)
{ {
/* instanceof for props.. handles extended type vs original types: */ /* instanceof for props.. handles extended type vs original types: */