Module: sip-router
Branch: master
Commit: 21386829d819c06c42871cf5b68d0d3a63ef0222
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2138682…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Thu Apr 18 15:48:03 2013 -0400
seas: fix compiler warning:
- warning: variable flags set but not used [-Wunused-but-set-variable]
---
modules/seas/encode_route.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules/seas/encode_route.c b/modules/seas/encode_route.c
index f49b327..55c99e5 100644
--- a/modules/seas/encode_route.c
+++ b/modules/seas/encode_route.c
@@ -66,10 +66,9 @@
int encode_route_body(char *hdr,int hdrlen,rr_t *route_parsed,unsigned char *where)
{
int i=0,k,route_offset;
- unsigned char flags,tmp[500];
+ unsigned char tmp[500];
rr_t *myroute;
- flags=0;
for(route_offset=0,i=0,myroute=route_parsed;myroute;myroute=myroute->next,i++){
if((k=encode_route(hdr,hdrlen,myroute,&tmp[route_offset]))<0){
LM_ERR("parsing route number %d\n",i);
@@ -127,10 +126,9 @@ int encode_route(char *hdrstart,int hdrlen,rr_t *body,unsigned char
*where)
int print_encoded_route_body(FILE *fd,char *hdr,int hdrlen,unsigned char *payload,int
paylen,char *prefix)
{
- unsigned char flags, numroutes;
+ unsigned char numroutes;
int i,offset;
- flags=payload[0];
fprintf(fd,"%s",prefix);
for(i=0;i<paylen;i++)
fprintf(fd,"%s%d%s",i==0?"ENCODED CONTACT
BODY:[":":",payload[i],i==paylen-1?"]\n":"");
@@ -179,10 +177,9 @@ int print_encoded_route(FILE *fd,char *hdr,int hdrlen,unsigned char*
payload,int
int dump_route_body_test(char *hdr,int hdrlen,unsigned char *payload,int paylen,FILE*
fd,char segregationLevel,char *prefix)
{
- unsigned char flags, numroutes;
+ unsigned char numroutes;
int i,offset;
- flags=payload[0];
if(!segregationLevel){
return dump_standard_hdr_test(hdr,hdrlen,(unsigned char*)payload,paylen,fd);
}