From b2c82cb0e5e8122a163291ce009ec5c7f7bb1a44 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 6 Aug 2008 11:49:11 +0200 Subject: [PATCH] inet_pton.c: use locale-independent tolower * lib/inet_pton.c: Include rather than . (inet_pton6): Use c_tolower rather than tolower. * modules/inet_pton (Depends-on): Add c-ctype. --- ChangeLog | 7 +++++++ lib/inet_pton.c | 4 ++-- modules/inet_pton | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9273b339f..0ab13226b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-08-06 Jim Meyering + + inet_pton.c: use locale-independent tolower + * lib/inet_pton.c: Include rather than . + (inet_pton6): Use c_tolower rather than tolower. + * modules/inet_pton (Depends-on): Add c-ctype. + 2008-08-06 Paolo Bonzini * lib/poll.c (poll): Avoid division when timeout is 0, cache diff --git a/lib/inet_pton.c b/lib/inet_pton.c index 261caf197..62ef14595 100644 --- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -37,7 +37,7 @@ /* Specification. */ #include -#include +#include #include #include @@ -179,7 +179,7 @@ inet_pton6 (const char *restrict src, unsigned char *restrict dst) curtok = src; saw_xdigit = 0; val = 0; - while ((ch = tolower (*src++)) != '\0') + while ((ch = c_tolower (*src++)) != '\0') { const char *pch; diff --git a/modules/inet_pton b/modules/inet_pton index deafb604e..173710ab8 100644 --- a/modules/inet_pton +++ b/modules/inet_pton @@ -6,6 +6,7 @@ lib/inet_pton.c m4/inet_pton.m4 Depends-on: +c-ctype socklen sys_socket arpa_inet -- 2.11.0