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 /sexp-transport.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 'sexp-transport.c')
-rw-r--r-- | sexp-transport.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sexp-transport.c b/sexp-transport.c index 0adcac27..e65832f3 100644 --- a/sexp-transport.c +++ b/sexp-transport.c @@ -37,13 +37,13 @@ /* NOTE: Decodes the input string in place */ int sexp_transport_iterator_first(struct sexp_iterator *iterator, - unsigned length, uint8_t *input) + size_t length, uint8_t *input) { /* We first base64 decode any transport encoded sexp at the start of * the input. */ - unsigned in = 0; - unsigned out = 0; + size_t in = 0; + size_t out = 0; while (in < length) switch(input[in]) @@ -64,8 +64,8 @@ sexp_transport_iterator_first(struct sexp_iterator *iterator, { /* Found transport encoding */ struct base64_decode_ctx ctx; - unsigned coded_length; - unsigned end; + size_t coded_length; + size_t end; for (end = ++in; end < length && input[end] != '}'; end++) ; |