summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-08-28 09:33:11 -0400
committerNick Mathewson <nickm@torproject.org>2014-08-28 09:33:11 -0400
commitd45175b21ffd9e96fa7b80c7eadcc87df24fea88 (patch)
tree168244222414e77c951c36645071b192b04e980e
parent0f3098e0c82c5faf10236c8b0cfff48ba5c07bff (diff)
Use 'unsigned char', not 'u_char'
Fixes mingw compilation for b64.c
-rw-r--r--b64.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/b64.c b/b64.c
index edce1b8..0e8c221 100644
--- a/b64.c
+++ b/b64.c
@@ -121,14 +121,14 @@ static const char Pad64 = '=';
int
libscrypt_b64_encode(src, srclength, target, targsize)
- u_char const *src;
+ unsigned char const *src;
size_t srclength;
char *target;
size_t targsize;
{
size_t datalength = 0;
- u_char input[3];
- u_char output[4];
+ unsigned char input[3];
+ unsigned char output[4];
unsigned int i;
while (2 < srclength) {
@@ -186,12 +186,12 @@ libscrypt_b64_encode(src, srclength, target, targsize)
int
libscrypt_b64_decode(src, target, targsize)
char const *src;
- u_char *target;
+ unsigned char *target;
size_t targsize;
{
int state, ch;
unsigned int tarindex;
- u_char nextbyte;
+ unsigned char nextbyte;
char *pos;
state = 0;