From: Guido van Rossum Date: Mon, 30 Sep 2002 13:52:01 +0000 (+0000) Subject: Backport all changes from trunk (all cosmetic). X-Git-Tag: v2.2.2b1~87 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=036f6a80bf4aac8751ceb6c5b898a8983b887fbf;p=thirdparty%2FPython%2Fcpython.git Backport all changes from trunk (all cosmetic). --- diff --git a/Modules/getaddrinfo.c b/Modules/getaddrinfo.c index 6731c6c1d9b0..dc6376fa2f3b 100644 --- a/Modules/getaddrinfo.c +++ b/Modules/getaddrinfo.c @@ -199,8 +199,7 @@ if (pai->ai_flags & AI_CANONNAME) {\ #define ERR(err) { error = (err); goto bad; } char * -gai_strerror(ecode) - int ecode; +gai_strerror(int ecode) { if (ecode < 0 || ecode > EAI_MAX) ecode = EAI_MAX; @@ -208,8 +207,7 @@ gai_strerror(ecode) } void -freeaddrinfo(ai) - struct addrinfo *ai; +freeaddrinfo(struct addrinfo *ai) { struct addrinfo *next; @@ -223,10 +221,9 @@ freeaddrinfo(ai) } static int -str_isnumber(p) - const char *p; +str_isnumber(const char *p) { - char *q = (char *)p; + unsigned char *q = (unsigned char *)p; while (*q) { if (! isdigit(*q)) return NO;