summaryrefslogtreecommitdiff
path: root/lib/libdrm/tests/drmdevice.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-11-14 08:39:58 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-11-14 08:39:58 +0000
commiteb7b2da24a0f4fba243716cdf7336e718d6095b4 (patch)
treed8712ac93623fc4b6b7217d762d24ed2750911f9 /lib/libdrm/tests/drmdevice.c
parent13d78d7be401f9ecff0bfee0c6779369816d1755 (diff)
Import libdrm 2.4.114
Diffstat (limited to 'lib/libdrm/tests/drmdevice.c')
-rw-r--r--lib/libdrm/tests/drmdevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdrm/tests/drmdevice.c b/lib/libdrm/tests/drmdevice.c
index f1c1cd3a0..b4b62d9c5 100644
--- a/lib/libdrm/tests/drmdevice.c
+++ b/lib/libdrm/tests/drmdevice.c
@@ -142,7 +142,7 @@ main(void)
for (int j = 0; j < DRM_NODE_MAX; j++) {
if (devices[i]->available_nodes & 1 << j) {
printf("--- Opening device node %s ---\n", devices[i]->nodes[j]);
- fd = open(devices[i]->nodes[j], O_RDONLY | O_CLOEXEC, 0);
+ fd = open(devices[i]->nodes[j], O_RDONLY | O_CLOEXEC);
if (fd < 0) {
printf("Failed - %s (%d)\n", strerror(errno), errno);
continue;