mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
remove unused variables
This commit is contained in:
parent
25e852985f
commit
dc1c64a148
1 changed files with 2 additions and 9 deletions
|
@ -564,7 +564,6 @@ BUILD_FUNC_DEF_2(PySocketSock_getsockopt,PySocketSockObject *,s, PyObject *,args
|
||||||
int res;
|
int res;
|
||||||
PyObject *buf;
|
PyObject *buf;
|
||||||
int buflen;
|
int buflen;
|
||||||
int flag;
|
|
||||||
|
|
||||||
if (PyArg_Parse(args, "(ii)", &level, &optname)) {
|
if (PyArg_Parse(args, "(ii)", &level, &optname)) {
|
||||||
int flag = 0;
|
int flag = 0;
|
||||||
|
@ -957,16 +956,11 @@ BUILD_FUNC_DEF_2(PySocketSock_getattr,PySocketSockObject *,s, char *,name)
|
||||||
static PyObject *
|
static PyObject *
|
||||||
BUILD_FUNC_DEF_1(PySocketSock_repr,PySocketSockObject *,s)
|
BUILD_FUNC_DEF_1(PySocketSock_repr,PySocketSockObject *,s)
|
||||||
{
|
{
|
||||||
PyObject *addro;
|
|
||||||
struct sockaddr *addr;
|
|
||||||
char buf[512];
|
char buf[512];
|
||||||
PyObject *t, *comma, *v;
|
|
||||||
int i, len;
|
|
||||||
sprintf(buf,
|
sprintf(buf,
|
||||||
"<socket object, fd=%d, family=%d, type=%d, protocol=%d>",
|
"<socket object, fd=%d, family=%d, type=%d, protocol=%d>",
|
||||||
s->sock_fd, s->sock_family, s->sock_type, s->sock_proto);
|
s->sock_fd, s->sock_family, s->sock_type, s->sock_proto);
|
||||||
t = PyString_FromString(buf);
|
return PyString_FromString(buf);
|
||||||
return t;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1034,8 +1028,7 @@ BUILD_FUNC_DEF_2(PySocket_gethostbyaddr,PyObject *,self, PyObject *, args)
|
||||||
struct sockaddr_in addr;
|
struct sockaddr_in addr;
|
||||||
char *ip_num;
|
char *ip_num;
|
||||||
struct hostent *h;
|
struct hostent *h;
|
||||||
int d1,d2,d3,d4;
|
char **pch;
|
||||||
char ch, **pch;
|
|
||||||
PyObject *rtn_tuple = (PyObject *)NULL;
|
PyObject *rtn_tuple = (PyObject *)NULL;
|
||||||
PyObject *name_list = (PyObject *)NULL;
|
PyObject *name_list = (PyObject *)NULL;
|
||||||
PyObject *addr_list = (PyObject *)NULL;
|
PyObject *addr_list = (PyObject *)NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue