From 31dc14840f70043755ff2973892c815889387dfa Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 26 Nov 2020 17:20:04 +0100 Subject: [PATCH] xf86drmMode.h: use ANSI C99 arrays MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids the use of a GNU-specific extension in public headers. Also see [1]. [1]: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/80#note_707458 Signed-off-by: Simon Ser Reviewed-by: Michel Dänzer --- xf86drmMode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xf86drmMode.h b/xf86drmMode.h index 90c3425a..c28995ab 100644 --- a/xf86drmMode.h +++ b/xf86drmMode.h @@ -560,14 +560,14 @@ extern int drmModeCreateLease(int fd, const uint32_t *objects, int num_objects, typedef struct drmModeLesseeList { uint32_t count; - uint32_t lessees[0]; + uint32_t lessees[]; } drmModeLesseeListRes, *drmModeLesseeListPtr; extern drmModeLesseeListPtr drmModeListLessees(int fd); typedef struct drmModeObjectList { uint32_t count; - uint32_t objects[0]; + uint32_t objects[]; } drmModeObjectListRes, *drmModeObjectListPtr; extern drmModeObjectListPtr drmModeGetLease(int fd);