@@ -1247,11 +1247,11 @@ static PyObject *py_dl_open(PyObject *self, PyObject *args)
12471247
12481248static PyObject * py_dl_close (PyObject * self , PyObject * args )
12491249{
1250- void * handle ;
1250+ int handle ;
12511251
12521252 if (!PyArg_ParseTuple (args , "i:dlclose" , & handle ))
12531253 return NULL ;
1254- if (dlclose (handle )) {
1254+ if (dlclose (( void * ) handle )) {
12551255 PyErr_SetString (PyExc_OSError ,
12561256 ctypes_dlerror ());
12571257 return NULL ;
@@ -1263,12 +1263,12 @@ static PyObject *py_dl_close(PyObject *self, PyObject *args)
12631263static PyObject * py_dl_sym (PyObject * self , PyObject * args )
12641264{
12651265 char * name ;
1266- void * handle ;
1266+ int handle ;
12671267 void * ptr ;
12681268
12691269 if (!PyArg_ParseTuple (args , "is:dlsym" , & handle , & name ))
12701270 return NULL ;
1271- ptr = ctypes_dlsym (handle , name );
1271+ ptr = ctypes_dlsym (( void * ) handle , name );
12721272 if (!ptr ) {
12731273 PyErr_SetString (PyExc_OSError ,
12741274 ctypes_dlerror ());
@@ -1286,7 +1286,7 @@ static PyObject *py_dl_sym(PyObject *self, PyObject *args)
12861286static PyObject *
12871287call_function (PyObject * self , PyObject * args )
12881288{
1289- PPROC func ;
1289+ int func ;
12901290 PyObject * arguments ;
12911291 PyObject * result ;
12921292
@@ -1296,7 +1296,7 @@ call_function(PyObject *self, PyObject *args)
12961296 & PyTuple_Type , & arguments ))
12971297 return NULL ;
12981298
1299- result = _CallProc (func ,
1299+ result = _CallProc (( PPROC ) func ,
13001300 arguments ,
13011301#ifdef MS_WIN32
13021302 NULL ,
@@ -1317,7 +1317,7 @@ call_function(PyObject *self, PyObject *args)
13171317static PyObject *
13181318call_cdeclfunction (PyObject * self , PyObject * args )
13191319{
1320- PPROC func ;
1320+ int func ;
13211321 PyObject * arguments ;
13221322 PyObject * result ;
13231323
@@ -1327,7 +1327,7 @@ call_cdeclfunction(PyObject *self, PyObject *args)
13271327 & PyTuple_Type , & arguments ))
13281328 return NULL ;
13291329
1330- result = _CallProc (func ,
1330+ result = _CallProc (( PPROC ) func ,
13311331 arguments ,
13321332#ifdef MS_WIN32
13331333 NULL ,
@@ -1510,7 +1510,7 @@ resize(PyObject *self, PyObject *args)
15101510#else
15111511 "On:resize" ,
15121512#endif
1513- ( PyObject * ) & obj , & size ))
1513+ & obj , & size ))
15141514 return NULL ;
15151515
15161516 dict = PyObject_stgdict ((PyObject * )obj );
0 commit comments