Mercurial > hg > octave-lyh > gnulib-hg
changeset 10309:5585c3effb24
inet_pton.c: use locale-independent tolower
* lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
(inet_pton6): Use c_tolower rather than tolower.
* modules/inet_pton (Depends-on): Add c-ctype.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Wed, 06 Aug 2008 11:49:11 +0200 |
parents | c3ecbe083a26 |
children | b48c3c82f4d9 |
files | ChangeLog lib/inet_pton.c modules/inet_pton |
diffstat | 3 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-08-06 Jim Meyering <meyering@redhat.com> + + inet_pton.c: use locale-independent tolower + * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>. + (inet_pton6): Use c_tolower rather than tolower. + * modules/inet_pton (Depends-on): Add c-ctype. + 2008-08-06 Paolo Bonzini <bonzini@gnu.org> * lib/poll.c (poll): Avoid division when timeout is 0, cache
--- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -37,7 +37,7 @@ /* Specification. */ #include <arpa/inet.h> -#include <ctype.h> +#include <c-ctype.h> #include <string.h> #include <errno.h> @@ -179,7 +179,7 @@ curtok = src; saw_xdigit = 0; val = 0; - while ((ch = tolower (*src++)) != '\0') + while ((ch = c_tolower (*src++)) != '\0') { const char *pch;