summaryrefslogtreecommitdiff
path: root/base64-decode.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-04-26 13:43:57 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-04-26 13:43:57 +0200
commit86fdb2ce31177028de997b98cc71b5027cf0bc1c (patch)
tree36354b55648781af22b5dc6c32862d2f3f70a6af /base64-decode.c
parenteb7c996e529a49b5eedeb064df275378486987d7 (diff)
downloadnettle-86fdb2ce31177028de997b98cc71b5027cf0bc1c.tar.gz
Use size_t rather than unsigned for base16, base64, nettle_bufer and sexp related functions.
Diffstat (limited to 'base64-decode.c')
-rw-r--r--base64-decode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/base64-decode.c b/base64-decode.c
index 9624c07d..c7c739af 100644
--- a/base64-decode.c
+++ b/base64-decode.c
@@ -114,13 +114,13 @@ base64_decode_single(struct base64_decode_ctx *ctx,
int
base64_decode_update(struct base64_decode_ctx *ctx,
- unsigned *dst_length,
+ size_t *dst_length,
uint8_t *dst,
- unsigned src_length,
+ size_t src_length,
const uint8_t *src)
{
- unsigned done;
- unsigned i;
+ size_t done;
+ size_t i;
assert(*dst_length >= BASE64_DECODE_LENGTH(src_length));