summaryrefslogtreecommitdiff
path: root/bsd-base64.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-12-31 16:09:17 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-12-31 16:09:17 +0000
commit083b9060f593a8b77df73071486860a407f19143 (patch)
tree531ae3d410772a3f472569f49ebd7059a1b8525b /bsd-base64.c
parent06657c8807345353694c1a561ee0a807c46a5b22 (diff)
downloadgpsd-083b9060f593a8b77df73071486860a407f19143.tar.gz
Get rid of u_char, and some splint cleanup.
Diffstat (limited to 'bsd-base64.c')
-rw-r--r--bsd-base64.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bsd-base64.c b/bsd-base64.c
index 733f42eb..f182e6e8 100644
--- a/bsd-base64.c
+++ b/bsd-base64.c
@@ -125,11 +125,11 @@ static const char Pad64 = '=';
/*@ +matchanyintegral -type @*/
int
-b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize)
+b64_ntop(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];
size_t i;
while (2 < srclength) {
@@ -194,7 +194,7 @@ b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize)
/*@ +matchanyintegral +charint @*/
int
-b64_pton(char const *src, u_char *target, size_t targsize)
+b64_pton(char const *src, unsigned char *target, size_t targsize)
{
size_t tarindex;
int state, ch;