[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
- Previous message: [Python-checkins] CVS: python/dist/src/Modules unicodedata.c,2.12,2.13
- Next message: [Python-checkins] CVS: python/dist/src/Modules pcremodule.c,2.27,2.28 selectmodule.c,2.52,2.53 signalmodule.c,2.58,2.59 xreadlinesmodule.c,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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);
- Previous message: [Python-checkins] CVS: python/dist/src/Modules unicodedata.c,2.12,2.13
- Next message: [Python-checkins] CVS: python/dist/src/Modules pcremodule.c,2.27,2.28 selectmodule.c,2.52,2.53 signalmodule.c,2.58,2.59 xreadlinesmodule.c,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]