mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-16 21:37:49 -04:00
treewide: mark fopencookie() vtable const
`fopencookie()` takes the vtable by value, so it can be marked `const`, so do that.
This commit is contained in:
parent
8caea521d7
commit
ff7b996596
2 changed files with 2 additions and 2 deletions
|
|
@ -1252,7 +1252,7 @@ static ssize_t log_write(void *cookie, const char *buf, size_t size)
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static cookie_io_functions_t io_funcs = {
|
static const cookie_io_functions_t io_funcs = {
|
||||||
.write = log_write,
|
.write = log_write,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -728,7 +728,7 @@ static ssize_t log_write(void *cookie, const char *buf, size_t size)
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static cookie_io_functions_t io_funcs = {
|
static const cookie_io_functions_t io_funcs = {
|
||||||
.write = log_write,
|
.write = log_write,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue