[Python-checkins] python/dist/src/Modules getaddrinfo.c,1.10,1.11

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Wed, 17 Jul 2002 07:33:37 -0700


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

Modified Files:
	getaddrinfo.c 
Log Message:
Wipe out some warnings about non-ANSI code and an unsafe arg to
isdigit().


Index: getaddrinfo.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/getaddrinfo.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** getaddrinfo.c	2 Dec 2001 10:15:37 -0000	1.10
--- getaddrinfo.c	17 Jul 2002 14:33:34 -0000	1.11
***************
*** 200,205 ****
  
  char *
! gai_strerror(ecode)
! 	int ecode;
  {
  	if (ecode < 0 || ecode > EAI_MAX)
--- 200,204 ----
  
  char *
! gai_strerror(int ecode)
  {
  	if (ecode < 0 || ecode > EAI_MAX)
***************
*** 209,214 ****
  
  void
! freeaddrinfo(ai)
! 	struct addrinfo *ai;
  {
  	struct addrinfo *next;
--- 208,212 ----
  
  void
! freeaddrinfo(struct addrinfo *ai)
  {
  	struct addrinfo *next;
***************
*** 224,231 ****
  
  static int
! str_isnumber(p)
! 	const char *p;
  {
! 	char *q = (char *)p;
  	while (*q) {
  		if (! isdigit(*q))
--- 222,228 ----
  
  static int
! str_isnumber(const char *p)
  {
! 	unsigned char *q = (unsigned char *)p;
  	while (*q) {
  		if (! isdigit(*q))