C89 declaration compliance

This commit is contained in:
Benjamin Peterson 2013-05-16 15:29:44 -05:00
parent 2502ebf9c9
commit 18b7191653
2 changed files with 3 additions and 2 deletions

View File

@ -2261,9 +2261,9 @@ PyCurses_GetWin(PyCursesWindowObject *self, PyObject *stream)
PyObject *data;
size_t datalen;
WINDOW *win;
_Py_IDENTIFIER(read);
PyCursesInitialised;
_Py_IDENTIFIER(read);
strcpy(fn, "/tmp/py.curses.getwin.XXXXXX");
fd = mkstemp(fn);

View File

@ -1662,9 +1662,10 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args,
struct sockaddr_can *addr;
PyObject *interfaceName;
struct ifreq ifr;
addr = (struct sockaddr_can *)addr_ret;
Py_ssize_t len;
addr = (struct sockaddr_can *)addr_ret;
if (!PyArg_ParseTuple(args, "O&", PyUnicode_FSConverter,
&interfaceName))
return 0;