1
Description: Add some missing consts to prevent complaints.
2
Author: Nick Leverton <nick@leverton.org>
4
Index: libupnp4-1.8.0~svn20090313/upnp/inc/upnp.h
5
===================================================================
6
--- libupnp4-1.8.0~svn20090313.orig/upnp/inc/upnp.h 2010-03-07 12:57:24.000000000 +0000
7
+++ libupnp4-1.8.0~svn20090313/upnp/inc/upnp.h 2010-03-07 13:11:05.000000000 +0000
9
* listening for UPnP related requests.
10
* \li On error: \c NULL is returned if \b UpnpInit has not succeeded.
12
-EXPORT_SPEC char *UpnpGetServerIpAddress();
13
+EXPORT_SPEC const char *UpnpGetServerIpAddress();
18
* listening for UPnP related requests.
19
* \li On error: \c NULL is returned if \b UpnpInit has not succeeded.
21
-EXPORT_SPEC char *UpnpGetServerIp6Address();
22
+EXPORT_SPEC const char *UpnpGetServerIp6Address();
27
* Plug and Play Device Architecture specification. */
28
IXML_Document *PropSet,
29
/*! [in] The subscription ID of the newly registered control point. */
31
+ const Upnp_SID SubsId);
35
Index: libupnp4-1.8.0~svn20090313/upnp/src/api/upnpapi.c
36
===================================================================
37
--- libupnp4-1.8.0~svn20090313.orig/upnp/src/api/upnpapi.c 2010-03-07 12:57:24.000000000 +0000
38
+++ libupnp4-1.8.0~svn20090313/upnp/src/api/upnpapi.c 2010-03-07 13:12:41.000000000 +0000
43
-char *UpnpGetServerIpAddress()
44
+const char *UpnpGetServerIpAddress()
46
if (UpnpSdkInit != 1) {
52
-char *UpnpGetServerIp6Address()
53
+const char *UpnpGetServerIp6Address()
55
if( UpnpSdkInit != 1 ) {
58
const char *DevID_const,
59
const char *ServName_const,
60
IXML_Document *PropSet,
62
+ const Upnp_SID SubsId)