X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhash.c;h=cb65c7f7661b4bcd6e770e1ff300e6111e8459a2;hp=5d156da8ae8a2d94ea302a8c9c3961a589576feb;hb=da99855784988c6bf125799f47c57d888bbc25f1;hpb=ee9243cb2ffba87ac8db17f15df44735b52f3bd7 diff --git a/src/hash.c b/src/hash.c index 5d156da8..cb65c7f7 100644 --- a/src/hash.c +++ b/src/hash.c @@ -54,7 +54,7 @@ so, delete this exception statement from your version. */ # define countof(x) (sizeof (x) / sizeof ((x)[0])) # endif # include -# define TOLOWER(x) tolower ((unsigned char) (x)) +# define c_tolower(x) tolower ((unsigned char) (x)) # if __STDC_VERSION__ >= 199901L # include /* for uintptr_t */ # else @@ -680,11 +680,11 @@ static unsigned long hash_string_nocase (const void *key) { const char *p = key; - unsigned int h = TOLOWER (*p); + unsigned int h = c_tolower (*p); if (h) for (p += 1; *p != '\0'; p++) - h = (h << 5) - h + TOLOWER (*p); + h = (h << 5) - h + c_tolower (*p); return h; }