lib/upnp/ClientInit: return UpnpClient_Handle

This commit is contained in:
Max Kellermann
2018-01-02 12:22:44 +01:00
parent 46406d6cca
commit 1fd8d46064
4 changed files with 7 additions and 8 deletions

View File

@@ -76,8 +76,7 @@ private:
void
UpnpNeighborExplorer::Open()
{
UpnpClient_Handle handle;
UpnpClientGlobalInit(handle);
auto handle = UpnpClientGlobalInit();
discovery = new UPnPDeviceDirectory(event_loop, handle, this);