[Python-checkins] r53775 - python/trunk/Modules/socketmodule.c

martin.v.loewis python-checkins at python.org
Wed Feb 14 12:30:08 CET 2007


Author: martin.v.loewis
Date: Wed Feb 14 12:30:07 2007
New Revision: 53775

Modified:
   python/trunk/Modules/socketmodule.c
Log:
Update 1432399 to removal of _BT_SOCKADDR_MEMB.


Modified: python/trunk/Modules/socketmodule.c
==============================================================================
--- python/trunk/Modules/socketmodule.c	(original)
+++ python/trunk/Modules/socketmodule.c	Wed Feb 14 12:30:07 2007
@@ -1362,14 +1362,13 @@
 		}
 		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;
 		}


More information about the Python-checkins mailing list