Hi Some more.
- Lauri
>From 8be028066c97eaabe55a6948462fa720bd5283d1 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <[email protected]> Date: Fri, 8 Jun 2012 15:12:38 +0300 Subject: [PATCH] utils: Remove two signed-unsigned warnings Signed-off-by: Lauri Kasanen <[email protected]> --- src/mk_utils.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mk_utils.c b/src/mk_utils.c index 8805794..1bc3a99 100644 --- a/src/mk_utils.c +++ b/src/mk_utils.c @@ -283,15 +283,18 @@ int mk_utils_hex2int(char *hex, int len) */ char *mk_utils_url_decode(mk_pointer uri) { - int i, hex_result; + int tmp, hex_result; + unsigned int i; int buf_idx = 0; char *buf; char hex[3]; - if ((i = mk_string_char_search(uri.data, '%', uri.len)) < 0) { + if ((tmp = mk_string_char_search(uri.data, '%', uri.len)) < 0) { return NULL; } + i = tmp; + buf = mk_mem_malloc_z(uri.len); if (i > 0) { -- 1.7.2.1
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
