Code Review
/
src
/
drm-lease-manager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
test/lease-manager: Create dummy fds for fake lease grants
[src/drm-lease-manager.git]
/
drm-lease-manager
/
test
/
test-drm-device.c
diff --git
a/drm-lease-manager/test/test-drm-device.c
b/drm-lease-manager/test/test-drm-device.c
index
844599a
..
c024d6e
100644
(file)
--- a/
drm-lease-manager/test/test-drm-device.c
+++ b/
drm-lease-manager/test/test-drm-device.c
@@
-17,6
+17,7
@@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include <xf86drmMode.h>
#include "test-drm-device.h"
#include <xf86drmMode.h>
#include "test-drm-device.h"
@@
-105,7
+106,6
@@
GET_DRM_RESOURCE_FN(Plane, plane, PLANE, plane_resources)
int create_lease(int fd, const uint32_t *objects, int num_objects, int flags,
uint32_t *lessee_id)
{
int create_lease(int fd, const uint32_t *objects, int num_objects, int flags,
uint32_t *lessee_id)
{
- UNUSED(fd);
UNUSED(objects);
UNUSED(num_objects);
UNUSED(flags);
UNUSED(objects);
UNUSED(num_objects);
UNUSED(flags);
@@
-118,5
+118,5
@@
int create_lease(int fd, const uint32_t *objects, int num_objects, int flags,
test_device.leases.count++;
test_device.leases.count++;
- return
0
;
+ return
dup(fd)
;
}
}