diff Modules/socketmodule.c @ 9095:637fec8a7dd3 legacy-trunk

Remove some unused variables from gethostbyaddr_ex and gethostbyaddr, discovered by Marc Lemburg.
author Guido van Rossum <guido@python.org>
date Sun, 13 Sep 1998 15:52:13 +0000
parents e5a8311684e4
children 07dae6fdae79
line wrap: on
line diff
--- a/Modules/socketmodule.c	Sun Sep 13 15:37:20 1998 +0000
+++ b/Modules/socketmodule.c	Sun Sep 13 15:52:13 1998 +0000
@@ -1402,7 +1402,6 @@
 	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 @@
         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];