Module: sip-router
Branch: master
Commit: 2abf2d4a42c05004319e682d2ad07d69bf2fc89e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2abf2d4…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Thu Apr 18 15:50:25 2013 -0400
seas: fix compiler warning:
- warning: variable flags set but not used [-Wunused-but-set-variable]
---
modules/seas/encode_via.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/modules/seas/encode_via.c b/modules/seas/encode_via.c
index 8661055..fa661ef 100644
--- a/modules/seas/encode_via.c
+++ b/modules/seas/encode_via.c
@@ -69,10 +69,9 @@
int encode_via_body(char *hdr,int hdrlen,struct via_body *via_parsed,unsigned char
*where)
{
int i=0,k,via_offset;
- unsigned char flags,tmp[500];
+ unsigned char tmp[500];
struct via_body *myvia;
- flags=0;
if(via_parsed)
for(via_offset=0,i=0,myvia=via_parsed;myvia;myvia=myvia->next,i++){
if((k=encode_via(hdr,hdrlen,myvia,&tmp[via_offset]))<0){
@@ -152,10 +151,9 @@ int encode_via(char *hdrstart,int hdrlen,struct via_body
*body,unsigned char *wh
int print_encoded_via_body(FILE *fd,char *hdr,int hdrlen,unsigned char *payload,int
paylen,char *prefix)
{
- unsigned char flags, numvias;
+ unsigned char numvias;
int i,offset;
- flags=payload[0];
fprintf(fd,"%s",prefix);
for(i=0;i<paylen;i++)
fprintf(fd,"%s%d%s",i==0?"ENCODED VIA
BODY:[":":",payload[i],i==paylen-1?"]\n":"");
@@ -226,11 +224,9 @@ int print_encoded_via(FILE *fd,char *hdr,int hdrlen,unsigned char*
payload,int p
int dump_via_body_test(char *hdr,int hdrlen,unsigned char *payload,int paylen,FILE*
fd,char segregationLevel)
{
- unsigned char flags, numvias;
+ unsigned char numvias;
int i,offset;
- flags=payload[0];
-
if(!segregationLevel){
return dump_standard_hdr_test(hdr,hdrlen,payload,paylen,fd);
}