summaryrefslogtreecommitdiff
path: root/openbsd-compat/base64.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-11-10 19:29:12 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-11-10 19:29:12 +1100
commit30d6974124fd54c5bd9f101d9e31291fc9eda1b9 (patch)
tree1a659540ea531ac03bffdde09e6c2c76b8c592e7 /openbsd-compat/base64.c
parentfe80d7a0683d5e8e55a9cb057f9271f9a5b883c5 (diff)
- (dtucker) [openbsd-compat/sigact.c] Update from OpenBSD 1.3 -> 1.4.
Id and copyright sync only, there were no substantial changes we need.
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;