test: make mock drmModeAtomicAddProperty return cursor

For consistency with the original libdrm function.
This commit is contained in:
Simon Ser 2019-11-29 11:06:57 +01:00
parent e09ebdac27
commit 333e454e98
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -390,7 +390,7 @@ int drmModeAtomicAddProperty(drmModeAtomicReq *req, uint32_t obj_id,
req->props[req->cursor].prop_id = prop_id;
req->props[req->cursor].value = value;
req->cursor++;
return 0;
return req->cursor;
}
int drmModeAtomicGetCursor(drmModeAtomicReq *req)