diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-11-10 19:29:12 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-11-10 19:29:12 +1100 |
commit | 30d6974124fd54c5bd9f101d9e31291fc9eda1b9 (patch) | |
tree | 1a659540ea531ac03bffdde09e6c2c76b8c592e7 /openbsd-compat/base64.c | |
parent | fe80d7a0683d5e8e55a9cb057f9271f9a5b883c5 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsd-compat/base64.c b/openbsd-compat/base64.c index 6eadb5c10..9a60f583b 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) | |||
139 | size_t datalength = 0; | 139 | size_t datalength = 0; |
140 | u_char input[3]; | 140 | u_char input[3]; |
141 | u_char output[4]; | 141 | u_char output[4]; |
142 | int i; | 142 | u_int i; |
143 | 143 | ||
144 | while (2 < srclength) { | 144 | while (2 < srclength) { |
145 | input[0] = *src++; | 145 | input[0] = *src++; |
@@ -206,7 +206,8 @@ b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize) | |||
206 | int | 206 | int |
207 | b64_pton(char const *src, u_char *target, size_t targsize) | 207 | b64_pton(char const *src, u_char *target, size_t targsize) |
208 | { | 208 | { |
209 | int tarindex, state, ch; | 209 | u_int tarindex, state; |
210 | int ch; | ||
210 | char *pos; | 211 | char *pos; |
211 | 212 | ||
212 | state = 0; | 213 | state = 0; |