diff options
author | Niels Möller <nisse@lysator.liu.se> | 2013-04-26 13:43:57 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2013-04-26 13:43:57 +0200 |
commit | 86fdb2ce31177028de997b98cc71b5027cf0bc1c (patch) | |
tree | 36354b55648781af22b5dc6c32862d2f3f70a6af /base16-decode.c | |
parent | eb7c996e529a49b5eedeb064df275378486987d7 (diff) | |
download | nettle-86fdb2ce31177028de997b98cc71b5027cf0bc1c.tar.gz |
Use size_t rather than unsigned for base16, base64, nettle_bufer and sexp related functions.
Diffstat (limited to 'base16-decode.c')
-rw-r--r-- | base16-decode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base16-decode.c b/base16-decode.c index 20ae2ab3..4dc8abd4 100644 --- a/base16-decode.c +++ b/base16-decode.c @@ -93,17 +93,17 @@ base16_decode_single(struct base16_decode_ctx *ctx, int base16_decode_update(struct base16_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 >= BASE16_DECODE_LENGTH(src_length)); - for (i = 0, done = 0; i<src_length; i++) + for (i = done = 0; i<src_length; i++) switch(base16_decode_single(ctx, dst + done, src[i])) { case -1: |