diff options
author | Guido van Rossum <guido@python.org> | 1996-02-27 15:21:19 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-02-27 15:21:19 (GMT) |
commit | dc1c64a148cc8b1ec57bf72020b001221fe62bb0 (patch) | |
tree | 689bf39951b74fd1cd00d7af9343e39ffbe38e62 /Modules/socketmodule.c | |
parent | 25e852985fc391a79fa76b6b35ea5829c0c8875e (diff) | |
download | cpython-dc1c64a148cc8b1ec57bf72020b001221fe62bb0.zip cpython-dc1c64a148cc8b1ec57bf72020b001221fe62bb0.tar.gz cpython-dc1c64a148cc8b1ec57bf72020b001221fe62bb0.tar.bz2 |
remove unused variables
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index e433494..db0758c 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -564,7 +564,6 @@ BUILD_FUNC_DEF_2(PySocketSock_getsockopt,PySocketSockObject *,s, PyObject *,args int res; PyObject *buf; int buflen; - int flag; if (PyArg_Parse(args, "(ii)", &level, &optname)) { int flag = 0; @@ -957,16 +956,11 @@ BUILD_FUNC_DEF_2(PySocketSock_getattr,PySocketSockObject *,s, char *,name) static PyObject * BUILD_FUNC_DEF_1(PySocketSock_repr,PySocketSockObject *,s) { - PyObject *addro; - struct sockaddr *addr; char buf[512]; - PyObject *t, *comma, *v; - int i, len; sprintf(buf, "<socket object, fd=%d, family=%d, type=%d, protocol=%d>", s->sock_fd, s->sock_family, s->sock_type, s->sock_proto); - t = PyString_FromString(buf); - return t; + return PyString_FromString(buf); } @@ -1034,8 +1028,7 @@ BUILD_FUNC_DEF_2(PySocket_gethostbyaddr,PyObject *,self, PyObject *, args) struct sockaddr_in addr; char *ip_num; struct hostent *h; - int d1,d2,d3,d4; - char ch, **pch; + char **pch; PyObject *rtn_tuple = (PyObject *)NULL; PyObject *name_list = (PyObject *)NULL; PyObject *addr_list = (PyObject *)NULL; |