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

Fred L. Drake fdrake@users.sourceforge.net
Thu, 19 Jul 2001 14:16:43 -0700


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

Modified Files:
	socketmodule.c 
Log Message:

Clean up some warnings from the SGI compiler.
This is part of SF patch #434992.


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.150
retrieving revision 1.151
diff -C2 -r1.150 -r1.151
*** socketmodule.c	2001/07/19 17:37:46	1.150
--- socketmodule.c	2001/07/19 21:16:41	1.151
***************
*** 574,578 ****
  makeipaddr(struct sockaddr_in *addr)
  {
! 	long x = ntohl(addr->sin_addr.s_addr);
  	char buf[100];
  	sprintf(buf, "%d.%d.%d.%d",
--- 574,578 ----
  makeipaddr(struct sockaddr_in *addr)
  {
! 	unsigned long x = ntohl(addr->sin_addr.s_addr);
  	char buf[100];
  	sprintf(buf, "%d.%d.%d.%d",
***************
*** 2087,2091 ****
  	/* Have to use inet_addr() instead */
  	char *ip_addr;
! 	long packed_addr;
  
  	if (!PyArg_ParseTuple(args, "s:inet_aton", &ip_addr)) {
--- 2087,2091 ----
  	/* Have to use inet_addr() instead */
  	char *ip_addr;
! 	unsigned long packed_addr;
  
  	if (!PyArg_ParseTuple(args, "s:inet_aton", &ip_addr)) {
***************
*** 2093,2097 ****
  	}
  #ifdef USE_GUSI1
! 	packed_addr = (long)inet_addr(ip_addr).s_addr;
  #else
  	packed_addr = inet_addr(ip_addr);
--- 2093,2097 ----
  	}
  #ifdef USE_GUSI1
! 	packed_addr = inet_addr(ip_addr).s_addr;
  #else
  	packed_addr = inet_addr(ip_addr);