aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-01-21 03:57:51 +0000
committerNick Mathewson <nickm@torproject.org>2009-01-21 03:57:51 +0000
commit0bb9f59083494d3145758952780040b6d04d1b73 (patch)
tree10d2c30dbdf46cc6ef78a5a693ff4be5e925558c /src/common/compat.h
parented899730e77cbc681bb4a02d15870c82cf456011 (diff)
downloadtor-0bb9f59083494d3145758952780040b6d04d1b73.tar.gz
tor-0bb9f59083494d3145758952780040b6d04d1b73.zip
Backport 18203: fix compile warning on panther, and bug 913.
svn:r18204
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 0800fee5d3..99987d3754 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -218,7 +218,7 @@ tor_memstr(const void *haystack, size_t hlen, const char *needle)
* which all assumes we're doing ASCII. */
#define DECLARE_CTYPE_FN(name) \
static int TOR_##name(char c); \
- extern const uint32_t const TOR_##name##_TABLE[]; \
+ extern const uint32_t TOR_##name##_TABLE[]; \
static INLINE int TOR_##name(char c) { \
uint8_t u = c; \
return !!(TOR_##name##_TABLE[(u >> 5) & 7] & (1 << (u & 31))); \
@@ -231,8 +231,8 @@ DECLARE_CTYPE_FN(ISXDIGIT)
DECLARE_CTYPE_FN(ISPRINT)
DECLARE_CTYPE_FN(ISLOWER)
DECLARE_CTYPE_FN(ISUPPER)
-extern const char const TOR_TOUPPER_TABLE[];
-extern const char const TOR_TOLOWER_TABLE[];
+extern const char TOR_TOUPPER_TABLE[];
+extern const char TOR_TOLOWER_TABLE[];
#define TOR_TOLOWER(c) (TOR_TOLOWER_TABLE[(uint8_t)c])
#define TOR_TOUPPER(c) (TOR_TOUPPER_TABLE[(uint8_t)c])