diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-03-24 16:39:15 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-24 16:39:15 +0100 |
commit | acc5f02ce8637bb6b395292fa259d20c296d8aa8 (patch) | |
tree | 318ee689b36a0decbd28f2a715b2c61ed3ab9bea /winsup/cygwin/libc/base64.c | |
parent | 6ba2b53c53260323039d7f872034991e6706a20b (diff) | |
download | cygnal-acc5f02ce8637bb6b395292fa259d20c296d8aa8.tar.gz cygnal-acc5f02ce8637bb6b395292fa259d20c296d8aa8.tar.bz2 cygnal-acc5f02ce8637bb6b395292fa259d20c296d8aa8.zip |
Throughout Cygwin, use u_intN_t or uintN_t
Don't use u_char, u_short, u_int or u_long in Cygwin, unless it refers
to the Winsock types. Use u_intN_t in BSD-based sources, unsigned char
where strings are concerned, uintN_t otherwise. Also:
* net.cc: Fix comment, we're not using u_long anymore.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/libc/base64.c')
-rw-r--r-- | winsup/cygwin/libc/base64.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/winsup/cygwin/libc/base64.c b/winsup/cygwin/libc/base64.c index f6bdb872e..a067fe2eb 100644 --- a/winsup/cygwin/libc/base64.c +++ b/winsup/cygwin/libc/base64.c @@ -128,10 +128,12 @@ static const char Pad64 = '='; */ 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) { |