aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-01-21 03:51:14 +0000
committerNick Mathewson <nickm@torproject.org>2009-01-21 03:51:14 +0000
commit3f8ab367c1c7f6822376e357f3437fdec21ce257 (patch)
tree97da36d284154b8783112f7052d7c6a01a24fbcf /src/common/compat.h
parent62203d1d5bde7f5e5bd22d64e0c96f6f1edafe48 (diff)
downloadtor-3f8ab367c1c7f6822376e357f3437fdec21ce257.tar
tor-3f8ab367c1c7f6822376e357f3437fdec21ce257.tar.gz
Fix warning on panther compile, and bug 913. Backport candidate.
svn:r18203
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 f077b88e0..7e8c83a29 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -249,7 +249,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))); \
@@ -262,8 +262,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])