summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-09-13 15:52:13 (GMT)
committerGuido van Rossum <guido@python.org>1998-09-13 15:52:13 (GMT)
commitce11393136c1d49a039aea0a3e53bca204ff5481 (patch)
treeacabd7af1e609017da059fe01b2a659ee05e51d0 /Modules/socketmodule.c
parent065ce5a4b7c2ff6f177fd6b40fac592bef7fc22f (diff)
downloadcpython-ce11393136c1d49a039aea0a3e53bca204ff5481.zip
cpython-ce11393136c1d49a039aea0a3e53bca204ff5481.tar.gz
cpython-ce11393136c1d49a039aea0a3e53bca204ff5481.tar.bz2
Remove some unused variables from gethostbyaddr_ex and gethostbyaddr,
discovered by Marc Lemburg.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 235d39b..f9b4fcd 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1402,7 +1402,6 @@ BUILD_FUNC_DEF_2(PySocket_gethostbyname_ex,PyObject *,self, PyObject *,args)
char *name;
struct hostent *h;
struct sockaddr_in addr;
- PyObject *addr_list = (PyObject *)NULL;
#ifdef HAVE_GETHOSTBYNAME_R
struct hostent hp_allocated;
char buf[16384];
@@ -1445,9 +1444,6 @@ BUILD_FUNC_DEF_2(PySocket_gethostbyaddr,PyObject *,self, PyObject *, args)
struct sockaddr_in addr;
char *ip_num;
struct hostent *h;
- PyObject *rtn_tuple = (PyObject *)NULL;
- PyObject *name_list = (PyObject *)NULL;
- PyObject *addr_list = (PyObject *)NULL;
#ifdef HAVE_GETHOSTBYNAME_R
struct hostent hp_allocated;
char buf[16384];