Commit e6cc5b68 authored by Martin v. Löwis's avatar Martin v. Löwis

Remove extraneous variable 'total', as reported by James Rucker.

parent e12454f4
...@@ -1497,7 +1497,7 @@ static PyObject * ...@@ -1497,7 +1497,7 @@ static PyObject *
PySocketSock_sendall(PySocketSockObject *s, PyObject *args) PySocketSock_sendall(PySocketSockObject *s, PyObject *args)
{ {
char *buf; char *buf;
int len, n, flags = 0, total = 0; int len, n, flags = 0;
if (!PyArg_ParseTuple(args, "s#|i:sendall", &buf, &len, &flags)) if (!PyArg_ParseTuple(args, "s#|i:sendall", &buf, &len, &flags))
return NULL; return NULL;
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
...@@ -1505,7 +1505,6 @@ PySocketSock_sendall(PySocketSockObject *s, PyObject *args) ...@@ -1505,7 +1505,6 @@ PySocketSock_sendall(PySocketSockObject *s, PyObject *args)
n = send(s->sock_fd, buf, len, flags); n = send(s->sock_fd, buf, len, flags);
if (n < 0) if (n < 0)
break; break;
total += n;
buf += n; buf += n;
len -= n; len -= n;
} while (len > 0); } while (len > 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment