summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-10-15 10:09:01 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-10-15 10:09:01 +0200
commit7bd938dd78ab27ec23ffd84811dbdfa5dd83593a (patch)
treeae38254d545446b3153b0c9f9d6919edfc8b2d6b
parent02820025e1d48f7bde9551aeda6f12784ab0c954 (diff)
downloadpython-apt-7bd938dd78ab27ec23ffd84811dbdfa5dd83593a.tar.gz
* python/tag.cc:
- make TagSecString_FromStringAndSize, TagSecString_FromString static, thanks to jcristau
-rw-r--r--debian/changelog8
-rw-r--r--python/tag.cc4
2 files changed, 10 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 5556b294..69df3d65 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+python-apt (0.8.8.1) UNRELEASED; urgency=low
+
+ * python/tag.cc:
+ - make TagSecString_FromStringAndSize, TagSecString_FromString
+ static, thanks to jcristau
+
+ -- Michael Vogt <michael.vogt@ubuntu.com> Mon, 15 Oct 2012 10:03:21 +0200
+
python-apt (0.8.8) unstable; urgency=low
[ Program translation updates ]
diff --git a/python/tag.cc b/python/tag.cc
index 248d818d..6ae439f5 100644
--- a/python/tag.cc
+++ b/python/tag.cc
@@ -74,7 +74,7 @@ int TagFileClear(PyObject *self) {
PyString_FromStringAndSize((v), (len))
#define TagSecString_FromString(self, v) PyString_FromString(v)
#else
-PyObject *TagSecString_FromStringAndSize(PyObject *self, const char *v,
+static PyObject *TagSecString_FromStringAndSize(PyObject *self, const char *v,
Py_ssize_t len) {
TagSecData *Self = (TagSecData *)self;
if (Self->Bytes)
@@ -85,7 +85,7 @@ PyObject *TagSecString_FromStringAndSize(PyObject *self, const char *v,
return PyUnicode_FromStringAndSize(v, len);
}
-PyObject *TagSecString_FromString(PyObject *self, const char *v) {
+static PyObject *TagSecString_FromString(PyObject *self, const char *v) {
TagSecData *Self = (TagSecData *)self;
if (Self->Bytes)
return PyBytes_FromString(v);