diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-05-16 20:29:44 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-05-16 20:29:44 (GMT) |
commit | 18b71916531f6b235993aaeaedfb7176b4658aa9 (patch) | |
tree | 58a692dc02942feb470d2fdf658b1b2d92a50a09 /Modules/socketmodule.c | |
parent | 2502ebf9c99df1883b49aa71f7b6494e70938603 (diff) | |
download | cpython-18b71916531f6b235993aaeaedfb7176b4658aa9.zip cpython-18b71916531f6b235993aaeaedfb7176b4658aa9.tar.gz cpython-18b71916531f6b235993aaeaedfb7176b4658aa9.tar.bz2 |
C89 declaration compliance
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index a6f8c5a..9200002 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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; |