Mercurial > cpython-lru_cache-weakref
comparison Modules/socketmodule.c @ 8838:e5a8311684e4 legacy-trunk
Removed unused variables.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 06 Aug 1998 03:21:15 +0000 |
| parents | f2a4a2b60860 |
| children | 637fec8a7dd3 |
comparison
equal
deleted
inserted
replaced
| 8837:929db8385ba4 | 8838:e5a8311684e4 |
|---|---|
| 1401 { | 1401 { |
| 1402 char *name; | 1402 char *name; |
| 1403 struct hostent *h; | 1403 struct hostent *h; |
| 1404 struct sockaddr_in addr; | 1404 struct sockaddr_in addr; |
| 1405 PyObject *addr_list = (PyObject *)NULL; | 1405 PyObject *addr_list = (PyObject *)NULL; |
| 1406 char **pch; | |
| 1407 PyObject *tmp; | |
| 1408 #ifdef HAVE_GETHOSTBYNAME_R | 1406 #ifdef HAVE_GETHOSTBYNAME_R |
| 1409 struct hostent hp_allocated; | 1407 struct hostent hp_allocated; |
| 1410 char buf[16384]; | 1408 char buf[16384]; |
| 1411 int buf_len = (sizeof buf) - 1; | 1409 int buf_len = (sizeof buf) - 1; |
| 1412 int errnop; | 1410 int errnop; |
| 1445 BUILD_FUNC_DEF_2(PySocket_gethostbyaddr,PyObject *,self, PyObject *, args) | 1443 BUILD_FUNC_DEF_2(PySocket_gethostbyaddr,PyObject *,self, PyObject *, args) |
| 1446 { | 1444 { |
| 1447 struct sockaddr_in addr; | 1445 struct sockaddr_in addr; |
| 1448 char *ip_num; | 1446 char *ip_num; |
| 1449 struct hostent *h; | 1447 struct hostent *h; |
| 1450 char **pch; | |
| 1451 PyObject *rtn_tuple = (PyObject *)NULL; | 1448 PyObject *rtn_tuple = (PyObject *)NULL; |
| 1452 PyObject *name_list = (PyObject *)NULL; | 1449 PyObject *name_list = (PyObject *)NULL; |
| 1453 PyObject *addr_list = (PyObject *)NULL; | 1450 PyObject *addr_list = (PyObject *)NULL; |
| 1454 PyObject *tmp; | |
| 1455 #ifdef HAVE_GETHOSTBYNAME_R | 1451 #ifdef HAVE_GETHOSTBYNAME_R |
| 1456 struct hostent hp_allocated; | 1452 struct hostent hp_allocated; |
| 1457 char buf[16384]; | 1453 char buf[16384]; |
| 1458 int buf_len = (sizeof buf) - 1; | 1454 int buf_len = (sizeof buf) - 1; |
| 1459 int errnop; | 1455 int errnop; |
