From e939bd1e8c6737b6ae84c5e2f2045542e6e2beb5 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 15 Jun 2021 14:46:05 +0200 Subject: [PATCH] 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 Reviewed-by: Emil Velikov --- xf86drmMode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drmMode.h b/xf86drmMode.h index 4bde6e35..c1434e1d 100644 --- a/xf86drmMode.h +++ b/xf86drmMode.h @@ -142,7 +142,7 @@ typedef struct _drmModeProperty { uint32_t *blob_ids; /* store the blob IDs */ } drmModePropertyRes, *drmModePropertyPtr; -static __inline int drm_property_type_is(drmModePropertyPtr property, +static __inline int drm_property_type_is(const drmModePropertyPtr property, uint32_t type) { /* instanceof for props.. handles extended type vs original types: */