aboutsummaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-06-24 08:04:42 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-06-24 08:04:42 +0000
commitdcc0b2447ee35addf2688c07bf6a5f984d043344 (patch)
treefb483909f4ba75611b88391a452bd13379a70de4 /buffer.h
parent-r 1026:1032 (diff)
downloadopenvpn-dcc0b2447ee35addf2688c07bf6a5f984d043344.tar.xz
Eliminated gcc 3.3.3 warnings on NetBSD
when ./configure --enable-strict is used. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1040 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/buffer.h b/buffer.h
index f95c5e1..8d04103 100644
--- a/buffer.h
+++ b/buffer.h
@@ -183,9 +183,9 @@ strncpynt (char *dest, const char *src, size_t maxlen)
/* return true if string contains at least one numerical digit */
static inline bool
-has_digit (const char* src)
+has_digit (const unsigned char* src)
{
- char c;
+ unsigned char c;
while ((c = *src++))
{
if (isdigit(c))
@@ -595,7 +595,7 @@ const char *np (const char *str);
#define CC_NAME (CC_ALNUM|CC_UNDERBAR)
#define CC_CRLF (CC_CR|CC_NEWLINE)
-bool char_class (const char c, const unsigned int flags);
+bool char_class (const unsigned char c, const unsigned int flags);
bool string_class (const char *str, const unsigned int inclusive, const unsigned int exclusive);
bool string_mod (char *str, const unsigned int inclusive, const unsigned int exclusive, const char replace);