summaryrefslogtreecommitdiff
path: root/openbsd-compat/base64.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/base64.c')
-rw-r--r--openbsd-compat/base64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsd-compat/base64.c b/openbsd-compat/base64.c
index 6eadb5c1..9a60f583 100644
--- a/openbsd-compat/base64.c
+++ b/openbsd-compat/base64.c
@@ -139,7 +139,7 @@ b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize)
size_t datalength = 0;
u_char input[3];
u_char output[4];
- int i;
+ u_int i;
while (2 < srclength) {
input[0] = *src++;
@@ -206,7 +206,8 @@ b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize)
int
b64_pton(char const *src, u_char *target, size_t targsize)
{
- int tarindex, state, ch;
+ u_int tarindex, state;
+ int ch;
char *pos;
state = 0;