[vlc-commits] PulseAudio SD: fix pointer aliasing
Rémi Denis-Courmont
git at videolan.org
Sun Oct 27 19:23:56 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct 27 20:13:28 2019 +0200| [9225471bc81c32e44fa1f10b8580da2bfe22131c] | committer: Rémi Denis-Courmont
PulseAudio SD: fix pointer aliasing
Tree functions return pointers to void pointers.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9225471bc81c32e44fa1f10b8580da2bfe22131c
---
modules/services_discovery/pulse.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/services_discovery/pulse.c b/modules/services_discovery/pulse.c
index 03ad22561d..7a5098c0b0 100644
--- a/modules/services_discovery/pulse.c
+++ b/modules/services_discovery/pulse.c
@@ -163,7 +163,7 @@ static int AddSource (services_discovery_t *sd, const pa_source_info *info)
d->index = info->index;
d->item = item;
- struct device **dp = tsearch (d, &sys->root, cmpsrc);
+ void **dp = tsearch (d, &sys->root, cmpsrc);
if (dp == NULL) /* Out-of-memory */
{
free (d);
@@ -205,7 +205,7 @@ static void RemoveSource (services_discovery_t *sd, uint32_t idx)
{
services_discovery_sys_t *sys = sd->p_sys;
- struct device **dp = tfind (&idx, &sys->root, cmpsrc);
+ void **dp = tfind (&idx, &sys->root, cmpsrc);
if (dp == NULL)
return;
More information about the vlc-commits
mailing list