aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-event.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-event.c')
-rw-r--r--gdb/python/py-event.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/python/py-event.c b/gdb/python/py-event.c
index 793f52c..057bb2b 100644
--- a/gdb/python/py-event.c
+++ b/gdb/python/py-event.c
@@ -24,7 +24,7 @@ void
evpy_dealloc (PyObject *self)
{
Py_XDECREF (((event_object *) self)->dict);
- self->ob_type->tp_free (self);
+ Py_TYPE (self)->tp_free (self);
}
PyObject *
@@ -143,8 +143,7 @@ static PyGetSetDef event_object_getset[] =
PyTypeObject event_object_type =
{
- PyObject_HEAD_INIT (NULL)
- 0, /* ob_size */
+ PyVarObject_HEAD_INIT (NULL, 0)
"gdb.Event", /* tp_name */
sizeof (event_object), /* tp_basicsize */
0, /* tp_itemsize */