aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-iax2.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-06-23 12:04:00 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-06-23 12:04:00 +0000
commit142763b2163369d8858fdaf89979762b7ee0d70b (patch)
tree3a91259c4c5830ecf648bc2af462fec61fbd2495 /epan/dissectors/packet-iax2.c
parentcd65440deb3d68bb2ad51b0360ad48ec2ccef724 (diff)
coverity 174
ifdef out a few lines of dead code for a feature that is not yet finished remove two compiler warnings about uninitialized variables (they are not uninitialized, just gcc being dumb) svn path=/trunk/; revision=18558
Diffstat (limited to 'epan/dissectors/packet-iax2.c')
-rw-r--r--epan/dissectors/packet-iax2.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/epan/dissectors/packet-iax2.c b/epan/dissectors/packet-iax2.c
index 023f18ac64..926e110381 100644
--- a/epan/dissectors/packet-iax2.c
+++ b/epan/dissectors/packet-iax2.c
@@ -1721,8 +1721,8 @@ static void desegment_iax(tvbuff_t *tvb, packet_info *pinfo, proto_tree *iax2_tr
iax_call_data *iax_call = iax_packet -> call_data;
iax_call_dirdata *dirdata;
- gpointer value;
- guint32 frag_offset;
+ gpointer value=NULL;
+ guint32 frag_offset=0;
fragment_data *fd_head;
gboolean must_desegment = FALSE;
@@ -1894,7 +1894,9 @@ static void dissect_payload(tvbuff_t *tvb, guint32 offset,
proto_tree *tree, guint32 ts, gboolean video,
iax_packet_data *iax_packet)
{
+#if 0
gboolean out_of_order = FALSE;
+#endif
tvbuff_t *sub_tvb;
guint32 codec = iax_packet -> codec;
guint32 nbytes;
@@ -1918,9 +1920,10 @@ static void dissect_payload(tvbuff_t *tvb, guint32 offset,
col_append_fstr (pinfo->cinfo, COL_INFO, ", data, format %s",
val_to_str (iax_call -> dataformat,
iax_dataformats, "unknown (0x%02x)"));
-
+#if 0
if( out_of_order )
col_append_fstr (pinfo->cinfo, COL_INFO, " (out-of-order packet)");
+#endif
} else {
col_append_fstr (pinfo->cinfo, COL_INFO, ", %s",
val_to_str (codec, codec_types, "unknown (0x%02x)"));