From 4e856f952575722914fa0f609a538ef3fc670a94 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 12 May 2015 10:13:39 +0200 Subject: [PATCH] rtjon: fixed compile warnings and branch index iteration --- modules/rtjson/rtjson_routing.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/rtjson/rtjson_routing.c b/modules/rtjson/rtjson_routing.c index 2b460366dbb..f8d6fdf8821 100644 --- a/modules/rtjson/rtjson_routing.c +++ b/modules/rtjson/rtjson_routing.c @@ -393,7 +393,6 @@ int rtjson_prepare_branch(sip_msg_t *msg, srjson_doc_t *jdoc, srjson_t *nj) str xdsp = {0}; str xuri = {0}; str xhdr = {0}; - unsigned int bflags = 0; unsigned int fr = 0; unsigned int fr_inv = 0; struct lump *anchor = NULL; @@ -574,7 +573,6 @@ int rtjson_next_route(sip_msg_t *msg) srjson_t *nj = NULL; str val; str xname; - int ret; int i; xname.s = "json"; @@ -621,8 +619,10 @@ int rtjson_next_route(sip_msg_t *msg) goto error; } + i = 0; while(nj && ival.v.i) { nj = nj->next; + i++; } if(nj==NULL) goto error; @@ -650,7 +650,6 @@ int rtjson_update_branch(sip_msg_t *msg) srjson_t *nj = NULL; str val; str xname; - int ret; int i; xname.s = "json"; @@ -697,8 +696,10 @@ int rtjson_update_branch(sip_msg_t *msg) goto error; } + i = 0; while(nj && ival.v.i) { nj = nj->next; + i++; } if(nj==NULL) goto error;