diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-02-16 23:13:54 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-02-16 23:13:54 (GMT) |
commit | e6cc5b68bfc20c3cc2bf93bb82f6ac6ddab585c0 (patch) | |
tree | 68f368c7f7313f126acf7ad2925465b9913d67d7 /Modules | |
parent | e12454f44afbb7d48aecb9d479fcb2fb4799499f (diff) | |
download | cpython-e6cc5b68bfc20c3cc2bf93bb82f6ac6ddab585c0.zip cpython-e6cc5b68bfc20c3cc2bf93bb82f6ac6ddab585c0.tar.gz cpython-e6cc5b68bfc20c3cc2bf93bb82f6ac6ddab585c0.tar.bz2 |
Remove extraneous variable 'total', as reported by James Rucker.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 9648ba0..a8560d6 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -1497,7 +1497,7 @@ static PyObject * PySocketSock_sendall(PySocketSockObject *s, PyObject *args) { char *buf; - int len, n, flags = 0, total = 0; + int len, n, flags = 0; if (!PyArg_ParseTuple(args, "s#|i:sendall", &buf, &len, &flags)) return NULL; Py_BEGIN_ALLOW_THREADS @@ -1505,7 +1505,6 @@ PySocketSock_sendall(PySocketSockObject *s, PyObject *args) n = send(s->sock_fd, buf, len, flags); if (n < 0) break; - total += n; buf += n; len -= n; } while (len > 0); |