summaryrefslogtreecommitdiff
path: root/xf86drmMode.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-26 17:20:04 +0100
committerMichel Dänzer <michel@daenzer.net>2020-12-10 09:45:39 +0000
commit31dc14840f70043755ff2973892c815889387dfa (patch)
tree8cf430910dc92afda2571d5e263b465b02671849 /xf86drmMode.h
parentdf373424c5d289484a7a328c7861c801e9d99143 (diff)
downloaddrm-31dc14840f70043755ff2973892c815889387dfa.tar.gz
xf86drmMode.h: use ANSI C99 arrays
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 <contact@emersion.fr> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Diffstat (limited to 'xf86drmMode.h')
-rw-r--r--xf86drmMode.h4
1 files 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);