~ubuntu-branches/ubuntu/trusty/libupnp4/trusty

« back to all changes in this revision

Viewing changes to debian/patches/05-const-tidyup.patch

  • Committer: Bazaar Package Importer
  • Author(s): Nick Leverton
  • Date: 2010-03-08 18:26:14 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100308182614-y3j47t5ddhrza6be
Tags: 1.8.0~svn20090313-1
* ACK NMU (thanks to gregor herrmann and Stefan Potyra).
* Pull from svn, see upstream changes.gz for details
  (Closes: #492160, FTBFS on GNU/kFreeBSD, thanks to Petr Salinger).
* Update Sections and general Policy to 3.8.4
* Use debhelper 7 dh instead of dbs
* Generate and update symbols file
* Rename libs to libupnp4, libixml4 and libthreadutil4, to allow
  co-installing libupnp3 and libupnp4.
* New patch 04-string-access-functions.patch: add _strget_ accessors
  to API, to avoid remembering to call UpnpString_get_String in clients.
* New patch 05-const-tidyup.patch for a few constness fixes.
* Upstream patch 06-patch-statevar-query.patch for missing CRNL.
* New patch 07-neaten-debug.patch to improve debug readability
* New patch 08-renewals-sid.patch to fix autorenewals.
* New patch 09-update-doc.patch to generate up to date -doc package.
* New patch 10-upnpinit-ntoa.patch to replace inet_ntoa by inet_ntop.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Add some missing consts to prevent complaints.
 
2
Author: Nick Leverton <nick@leverton.org>
 
3
 
 
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
 
8
@@ -828,7 +828,7 @@
 
9
  *             listening for UPnP related requests.
 
10
  *     \li On error: \c NULL is returned if \b UpnpInit has not succeeded.
 
11
  */
 
12
-EXPORT_SPEC char *UpnpGetServerIpAddress();
 
13
+EXPORT_SPEC const char *UpnpGetServerIpAddress();
 
14
 
 
15
 
 
16
 /*!
 
17
@@ -842,7 +842,7 @@
 
18
  *             listening for UPnP related requests.
 
19
  *     \li On error: \c NULL is returned if \b UpnpInit has not succeeded.
 
20
  */
 
21
-EXPORT_SPEC char *UpnpGetServerIp6Address();
 
22
+EXPORT_SPEC const char *UpnpGetServerIp6Address();
 
23
 
 
24
 
 
25
 /*!
 
26
@@ -1558,7 +1558,7 @@
 
27
         * Plug and Play Device Architecture specification. */
 
28
        IXML_Document *PropSet,
 
29
        /*! [in] The subscription ID of the newly registered control point. */
 
30
-       Upnp_SID SubsId);
 
31
+       const Upnp_SID SubsId);
 
32
 
 
33
 
 
34
 /*!
 
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
 
39
@@ -401,7 +401,7 @@
 
40
 }
 
41
 
 
42
 
 
43
-char *UpnpGetServerIpAddress()
 
44
+const char *UpnpGetServerIpAddress()
 
45
 {
 
46
        if (UpnpSdkInit != 1) {
 
47
                return NULL;
 
48
@@ -411,7 +411,7 @@
 
49
 }
 
50
 
 
51
 
 
52
-char *UpnpGetServerIp6Address()
 
53
+const char *UpnpGetServerIp6Address()
 
54
 {
 
55
        if( UpnpSdkInit != 1 ) {
 
56
                return NULL;
 
57
@@ -1971,7 +1971,7 @@
 
58
        const char *DevID_const,
 
59
        const char *ServName_const,
 
60
        IXML_Document *PropSet,
 
61
-       Upnp_SID SubsId)
 
62
+       const Upnp_SID SubsId)
 
63
 {
 
64
        int ret = 0;
 
65
        int line = 0;