diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-09 20:02:25 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-09 20:02:25 +0000 |
commit | 1de0eaebc06e47f35480cd78b292811de403de0e (patch) | |
tree | 8fe378407f5e62f732519701f61eff1294fa29b3 /epan/dissectors/packet-dcp-etsi.c | |
parent | 44613732d3cfb484ab27b16df021eaa64b61d915 (diff) |
move some variable declarations to the start of the block.
many compilers do not support the nonstandard feature to declare variables in the middle of a block.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21012 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-dcp-etsi.c')
-rw-r--r-- | epan/dissectors/packet-dcp-etsi.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/epan/dissectors/packet-dcp-etsi.c b/epan/dissectors/packet-dcp-etsi.c index 3497045822..db396fdb14 100644 --- a/epan/dissectors/packet-dcp-etsi.c +++ b/epan/dissectors/packet-dcp-etsi.c @@ -257,15 +257,18 @@ dissect_pft_fec_detailed(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, NULL, tree); else { guint fragments=0; + guint32 *got; + fragment_data *fd; + fragment_data *fd_head; + if(tree) proto_tree_add_text (tree, tvb, 0, -1, "want %d, got %d need %d", fcount, fragments, rx_min ); - guint32 *got = ep_alloc(fcount*sizeof(guint32)); + got = ep_alloc(fcount*sizeof(guint32)); /* make a list of the findex (offset) numbers of the fragments we have */ - fragment_data *fd = fragment_get(pinfo, seq, dcp_fragment_table); - fragment_data *fd_head; + fd = fragment_get(pinfo, seq, dcp_fragment_table); for (fd_head = fd; fd_head != NULL; fd_head = fd_head->next) { if(fd_head->data) { got[fragments++] = fd_head->offset; /* this is the findex of the fragment */ |