]> granicus.if.org Git - python/commitdiff
Remove extraneous variable 'total', as reported by James Rucker.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 16 Feb 2002 23:13:54 +0000 (23:13 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 16 Feb 2002 23:13:54 +0000 (23:13 +0000)
Modules/socketmodule.c

index 9648ba03c46d6c6f2da0cfab495c201709343168..a8560d6a6ab7cdc9dc2c45674d9a364c303839c7 100644 (file)
@@ -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);