tag 670962 patch
thanks

Hi,

is19253 <is19...@salle.url.edu> (01/05/2012):
> Hi Adam D. Barratt
> 
> You have to use: libupnp 1.6.6
> 
> Other version don't work.
> 
> The info it's in:
> http://forum.amule.org/index.php?topic=19701.msg105515#msg105515
> 
> Have a nice day/night!   :)

we can't stay in the past forever (and you need to Cc the submitter
if you want him to read your mail).

Anyway, the following patch allows amule to build, but I performed no
run-time test.

Mraw,
KiBi.
Fix "cannot convert 'UpnpString* {aka s_UpnpString*}' to 'const char*'".

Looking at the diff between libupnp 1.6.6 and 1.6.17, a getter appeared,
returning a char pointer; use that to get the needed const char*.

Signed-off-by: Cyril Brulebois <k...@debian.org>
--- a/src/UPnPBase.cpp
+++ b/src/UPnPBase.cpp
@@ -1324,7 +1324,7 @@ upnpEventSubscriptionExpired:
 		int TimeOut = 1801;
 		int ret = UpnpSubscribe(
 			upnpCP->m_UPnPClientHandle,
-			es_event->PublisherUrl,
+			UpnpString_get_String(es_event->PublisherUrl),
 			&TimeOut,
 			newSID);
 		if (ret != UPNP_E_SUCCESS) {
@@ -1333,7 +1333,7 @@ upnpEventSubscriptionExpired:
 				msg.str(), es_event->ErrCode, NULL, NULL);
 		} else {
 			ServiceMap::iterator it =
-				upnpCP->m_ServiceMap.find(es_event->PublisherUrl);
+				upnpCP->m_ServiceMap.find(UpnpString_get_String(es_event->PublisherUrl));
 			if (it != upnpCP->m_ServiceMap.end()) {
 				CUPnPService &service = *(it->second);
 				service.SetTimeout(TimeOut);

Attachment: signature.asc
Description: Digital signature

Reply via email to