summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-02-14 11:30:07 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-02-14 11:30:07 (GMT)
commitf22848273505e74af301aa6ccc10d978d32afabc (patch)
tree3077101fb647a54c5437935803ee2c5133f299c5 /Modules/socketmodule.c
parent45423a7571e7041bf4b6ee6238c4719139ebe1cb (diff)
downloadcpython-f22848273505e74af301aa6ccc10d978d32afabc.zip
cpython-f22848273505e74af301aa6ccc10d978d32afabc.tar.gz
cpython-f22848273505e74af301aa6ccc10d978d32afabc.tar.bz2
Update 1432399 to removal of _BT_SOCKADDR_MEMB.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index d79db27..cc54098 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1362,14 +1362,13 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args,
}
case BTPROTO_HCI:
{
- struct sockaddr_hci *addr = (struct sockaddr_hci *) _BT_SOCKADDR_MEMB(s, hci);
+ struct sockaddr_hci *addr = (struct sockaddr_hci *)addr_ret;
_BT_HCI_MEMB(addr, family) = AF_BLUETOOTH;
if (!PyArg_ParseTuple(args, "i", &_BT_HCI_MEMB(addr, dev))) {
PyErr_SetString(socket_error, "getsockaddrarg: "
"wrong format");
return 0;
}
- *addr_ret = (struct sockaddr *) addr;
*len_ret = sizeof *addr;
return 1;
}