aboutsummaryrefslogtreecommitdiff
path: root/shm.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-01 23:23:51 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-01 23:23:51 +0000
commit8df82938b0549d0c5820ce258f0097a0370e75ea (patch)
tree94270df4b9b9bfc272f92bffc391d2c5e57f1803 /shm.c
parentshm: add debug logging of how large the allocated memory buffer is (diff)
shm: get_buffer(): remove 'copies' argument; it's not used
Diffstat (limited to 'shm.c')
-rw-r--r--shm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/shm.c b/shm.c
index 1b2c9d7c..fd962698 100644
--- a/shm.c
+++ b/shm.c
@@ -31,10 +31,8 @@ static const struct wl_buffer_listener buffer_listener = {
};
struct buffer *
-shm_get_buffer(struct wl_shm *shm, int width, int height, size_t copies)
+shm_get_buffer(struct wl_shm *shm, int width, int height)
{
- assert(copies >= 1);
-
tll_foreach(buffers, it) {
if (it->item.width != width || it->item.height != height)
continue;