summaryrefslogtreecommitdiff
path: root/src/pulsecore/shmasyncq.c
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2014-04-15 16:26:12 +0200
committerDavid Henningsson <david.henningsson@canonical.com>2014-04-22 16:31:44 +0200
commit6c42cfe32497c3b8a83929971ba109ec486dbc11 (patch)
treec93218f4640c4f2f3c9df784eeb7e89eac6d4b92 /src/pulsecore/shmasyncq.c
parent43b6a67fa8f6370398c11dd3eebaeac45dba4e3f (diff)
downloadpulseaudio-6c42cfe32497c3b8a83929971ba109ec486dbc11.tar.gz
fdsem: remove superfluous parameter in call to pa_fdsem_new_shm
This parameter was never assigned, so just remove it. Note that the only current user of this function is shmasyncq.c, which is unused - we don't even build it. But I fixed it up anyway. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Diffstat (limited to 'src/pulsecore/shmasyncq.c')
-rw-r--r--src/pulsecore/shmasyncq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/shmasyncq.c b/src/pulsecore/shmasyncq.c
index e6599a995..8d3c44719 100644
--- a/src/pulsecore/shmasyncq.c
+++ b/src/pulsecore/shmasyncq.c
@@ -86,10 +86,11 @@ pa_shmasyncq *pa_shmasyncq_new(unsigned n_elements, size_t element_size, void *d
l->data->n_elements = n_elements;
l->data->element_size = element_size;
- if (!(l->read_fdsem = pa_fdsem_new_shm(&d->read_fdsem_data, &fd[0]))) {
+ if (!(l->read_fdsem = pa_fdsem_new_shm(&d->read_fdsem_data))) {
pa_xfree(l);
return NULL;
}
+ fd[0] = pa_fdsem_get(l->read_fdsem);
if (!(l->write_fdsem = pa_fdsem_new(&d->write_fdsem_data, &fd[1]))) {
pa_fdsem_free(l->read_fdsem);