mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
render/dmabuf: make src arg const in wlr_dmabuf_attributes_copy
This commit is contained in:
parent
7ac2ce25e3
commit
3d7aa73867
2 changed files with 2 additions and 2 deletions
|
@ -40,6 +40,6 @@ void wlr_dmabuf_attributes_finish(struct wlr_dmabuf_attributes *attribs);
|
||||||
* Clones the DMA-BUF attributes.
|
* Clones the DMA-BUF attributes.
|
||||||
*/
|
*/
|
||||||
bool wlr_dmabuf_attributes_copy(struct wlr_dmabuf_attributes *dst,
|
bool wlr_dmabuf_attributes_copy(struct wlr_dmabuf_attributes *dst,
|
||||||
struct wlr_dmabuf_attributes *src);
|
const struct wlr_dmabuf_attributes *src);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -13,7 +13,7 @@ void wlr_dmabuf_attributes_finish(struct wlr_dmabuf_attributes *attribs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wlr_dmabuf_attributes_copy(struct wlr_dmabuf_attributes *dst,
|
bool wlr_dmabuf_attributes_copy(struct wlr_dmabuf_attributes *dst,
|
||||||
struct wlr_dmabuf_attributes *src) {
|
const struct wlr_dmabuf_attributes *src) {
|
||||||
memcpy(dst, src, sizeof(struct wlr_dmabuf_attributes));
|
memcpy(dst, src, sizeof(struct wlr_dmabuf_attributes));
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in a new issue