summaryrefslogtreecommitdiffstats
path: root/Objects/cobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/cobject.c')
-rw-r--r--Objects/cobject.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Objects/cobject.c b/Objects/cobject.c
index 5a6be43..f764a1d 100644
--- a/Objects/cobject.c
+++ b/Objects/cobject.c
@@ -100,16 +100,16 @@ PyCObject_Import(char *module_name, char *name)
}
int
-PyCObject_SetVoidPtr(PyObject *_self, void *cobj)
+PyCObject_SetVoidPtr(PyObject *self, void *cobj)
{
- PyCObject* self = (PyCObject*)_self;
- if (self == NULL || !PyCObject_Check(self) ||
- self->destructor != NULL) {
+ PyCObject* cself = (PyCObject*)self;
+ if (cself == NULL || !PyCObject_Check(cself) ||
+ cself->destructor != NULL) {
PyErr_SetString(PyExc_TypeError,
"Invalid call to PyCObject_SetVoidPtr");
return 0;
}
- self->cobject = cobj;
+ cself->cobject = cobj;
return 1;
}