diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2006-06-24 08:04:42 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2006-06-24 08:04:42 +0000 |
commit | dcc0b2447ee35addf2688c07bf6a5f984d043344 (patch) | |
tree | fb483909f4ba75611b88391a452bd13379a70de4 /crypto.c | |
parent | -r 1026:1032 (diff) | |
download | openvpn-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 '')
-rw-r--r-- | crypto.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1012,7 +1012,7 @@ read_key_file (struct key2 *key2, const char *file, const unsigned int flags) const char *error_filename = file; /* parse info */ - const char *cp; + const unsigned char *cp; int hb_index = 0; int line_num = 1; int line_index = 0; @@ -1063,10 +1063,10 @@ read_key_file (struct key2 *key2, const char *file, const unsigned int flags) close (fd); } - cp = (char *)in.data; + cp = (unsigned char *)in.data; while (size) { - const char c = *cp; + const unsigned char c = *cp; #if 0 msg (M_INFO, "char='%c' s=%d ln=%d li=%d m=%d c=%d", |