From 80ecb4b1993092891a0e9112ad8d8db2aeb710ac Mon Sep 17 00:00:00 2001 From: Goten Xiao Date: Mon, 19 May 2008 18:12:24 +0100 Subject: [PATCH] removed unnecessary explicit casts to (struct *x52) --- PyX52.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PyX52.c b/PyX52.c index be1c1a3..261462d 100644 --- a/PyX52.c +++ b/PyX52.c @@ -48,7 +48,7 @@ PyX52_X52_init(PyX52_X52_object *self, PyObject *args) { int ok = PyArg_ParseTuple(args, ""); - self->handle = (struct x52 *)x52_init(); + self->handle = x52_init(); if (self->handle == NULL) { PyErr_SetString(PyExc_RuntimeError, "No compatible joysticks found."); @@ -63,7 +63,7 @@ PyX52_X52_dealloc(PyX52_X52_object *self) { if (self->handle != NULL) { - x52_close((struct x52 *)self->handle); + x52_close(self->handle); } self->handle = NULL; self->ob_type->tp_free((PyObject *)self); @@ -73,7 +73,7 @@ static PyObject * PyX52_X52_gettype(PyX52_X52_object *self, PyObject *args) { int ok = PyArg_ParseTuple(args, ""); - enum x52_type type = x52_gettype((struct x52 *)self->handle); + enum x52_type type = x52_gettype(self->handle); return Py_BuildValue("i", type); } -- 2.11.4.GIT