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 7f560c8e6c7d9b0227fc17d48bb939f5ed617b36..1d9ca83d05c0bb8da50851aee5444ebe62b18a4e 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);