[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.206,1.207

Martin v. L?wis loewis@users.sourceforge.net
Sat, 16 Feb 2002 15:13:56 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv23101

Modified Files:
	socketmodule.c 
Log Message:
Remove extraneous variable 'total', as reported by James Rucker.


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.206
retrieving revision 1.207
diff -C2 -d -r1.206 -r1.207
*** socketmodule.c	16 Feb 2002 18:47:07 -0000	1.206
--- socketmodule.c	16 Feb 2002 23:13:54 -0000	1.207
***************
*** 1498,1502 ****
  {
  	char *buf;
! 	int len, n, flags = 0, total = 0;
  	if (!PyArg_ParseTuple(args, "s#|i:sendall", &buf, &len, &flags))
  		return NULL;
--- 1498,1502 ----
  {
  	char *buf;
! 	int len, n, flags = 0;
  	if (!PyArg_ParseTuple(args, "s#|i:sendall", &buf, &len, &flags))
  		return NULL;
***************
*** 1506,1510 ****
  		if (n < 0)
  			break;
- 		total += n;
  		buf += n;
  		len -= n;
--- 1506,1509 ----