summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-11-12 19:46:13 +0100
committerYang Tse <yangsita@gmail.com>2010-11-12 19:46:13 +0100
commitdac69d52c254feb97c3ae066737fc016e80aa4c4 (patch)
treee8bf884dd13aeb8e9e8d813fff248a3e3d71cf87 /setup_once.h
parent494274e653936335c255a47599970de3df21e7c4 (diff)
downloadc-ares-dac69d52c254feb97c3ae066737fc016e80aa4c4.tar.gz
c-ares-dac69d52c254feb97c3ae066737fc016e80aa4c4.tar.bz2
c-ares-dac69d52c254feb97c3ae066737fc016e80aa4c4.zip
Fix compiler warning: array subscript has type 'char'
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h
index 17ef226..0c7c811 100644
--- a/setup_once.h
+++ b/setup_once.h
@@ -252,6 +252,8 @@ struct timeval {
#define ISBLANK(x) (int)((((unsigned char)x) == ' ') || \
(((unsigned char)x) == '\t'))
+#define TOLOWER(x) (tolower((int) ((unsigned char)x)))
+
/*
* 'bool' exists on platforms with <stdbool.h>, i.e. C99 platforms.