summaryrefslogtreecommitdiff
path: root/src/neighbor
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-02 12:22:44 +0100
committerMax Kellermann <max@musicpd.org>2018-01-02 12:22:44 +0100
commit1fd8d460646cd8a01e0cc1a8c310f395b472cae1 (patch)
treeab2661525933d90f5d70935ad6cc595ffa8431c9 /src/neighbor
parent46406d6cca25c2e5a84bb45c75ee4ad4c7fcc42e (diff)
lib/upnp/ClientInit: return UpnpClient_Handle
Diffstat (limited to 'src/neighbor')
-rw-r--r--src/neighbor/plugins/UpnpNeighborPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/neighbor/plugins/UpnpNeighborPlugin.cxx b/src/neighbor/plugins/UpnpNeighborPlugin.cxx
index 6d160be7f..b034fa96d 100644
--- a/src/neighbor/plugins/UpnpNeighborPlugin.cxx
+++ b/src/neighbor/plugins/UpnpNeighborPlugin.cxx
@@ -76,8 +76,7 @@ private:
void
UpnpNeighborExplorer::Open()
{
- UpnpClient_Handle handle;
- UpnpClientGlobalInit(handle);
+ auto handle = UpnpClientGlobalInit();
discovery = new UPnPDeviceDirectory(event_loop, handle, this);