summaryrefslogtreecommitdiff
path: root/src/lib
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/lib
parent46406d6cca25c2e5a84bb45c75ee4ad4c7fcc42e (diff)
lib/upnp/ClientInit: return UpnpClient_Handle
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/upnp/ClientInit.cxx6
-rw-r--r--src/lib/upnp/ClientInit.hxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/upnp/ClientInit.cxx b/src/lib/upnp/ClientInit.cxx
index 2fd891b83..76332cfd2 100644
--- a/src/lib/upnp/ClientInit.cxx
+++ b/src/lib/upnp/ClientInit.cxx
@@ -60,8 +60,8 @@ DoInit()
UpnpGetErrorMessage(code));
}
-void
-UpnpClientGlobalInit(UpnpClient_Handle &handle)
+UpnpClient_Handle
+UpnpClientGlobalInit()
{
UpnpGlobalInit();
@@ -75,7 +75,7 @@ UpnpClientGlobalInit(UpnpClient_Handle &handle)
}
++upnp_client_ref;
- handle = upnp_client_handle;
+ return upnp_client_handle;
}
void
diff --git a/src/lib/upnp/ClientInit.hxx b/src/lib/upnp/ClientInit.hxx
index f45901eff..3a17b5b83 100644
--- a/src/lib/upnp/ClientInit.hxx
+++ b/src/lib/upnp/ClientInit.hxx
@@ -24,8 +24,8 @@
#include <upnp.h>
-void
-UpnpClientGlobalInit(UpnpClient_Handle &handle);
+UpnpClient_Handle
+UpnpClientGlobalInit();
void
UpnpClientGlobalFinish() noexcept;