X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fbase64.c;h=997b6da5e1c41bbd14d63bc720d776e6a5a28b0a;hb=1e5ae8a779b693d8023ce9821b839f29e210d9e8;hp=f50e48eb1ecdf1d65eb53974c142eb09a15f34d2;hpb=fa7aa6d9457616ce28f97c83eaa616d0ff276870;p=libucw.git diff --git a/ucw/base64.c b/ucw/base64.c index f50e48eb..997b6da5 100644 --- a/ucw/base64.c +++ b/ucw/base64.c @@ -24,11 +24,11 @@ static const byte base64_table[] = }; static const byte base64_pad = '='; -uns -base64_encode(byte *dest, const byte *src, uns len) +uint +base64_encode(byte *dest, const byte *src, uint len) { const byte *current = src; - uns i = 0; + uint i = 0; while (len > 2) { /* keep going until we have less than 24 bits */ dest[i++] = base64_table[current[0] >> 2]; @@ -58,14 +58,14 @@ base64_encode(byte *dest, const byte *src, uns len) } /* as above, but backwards. :) */ -uns -base64_decode(byte *dest, const byte *src, uns len) +uint +base64_decode(byte *dest, const byte *src, uint len) { const byte *current = src; - uns ch; - uns i = 0, j = 0; + uint ch; + uint i = 0, j = 0; static byte reverse_table[256]; - static uns table_built = 0; + static uint table_built = 0; if (table_built == 0) { ucwlib_lock();