fix compile error:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 5 Jan 2007 22:02:16 +0000 (22:02 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 5 Jan 2007 22:02:16 +0000 (22:02 +0000)
pmt.cpp: In member function 'void eDVBCAService::sendCAPMT()':
pmt.cpp:839: warning: zero-length printf format string
pmt.cpp: At global scope:
pmt.cpp:868: error: ISO C++ forbids declaration of 'PyList_AppendSteal' with no type

lib/dvb/pmt.cpp

index 7f560c8..1d9ca83 100644 (file)
@@ -865,7 +865,7 @@ static PyObject *createTuple(int pid, const char *type)
        return r;
 }
 
-static inline PyList_AppendSteal(PyObject *list, PyObject *item)
+static inline PyObject PyList_AppendSteal(PyObject *list, PyObject *item)
 {
        PyList_Append(list, item);
        Py_DECREF(item);