diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2007-03-09 20:02:25 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2007-03-09 20:02:25 +0000 |
commit | 10588355f9bc3022fad2abd059687f63bfe5db43 (patch) | |
tree | 8fe378407f5e62f732519701f61eff1294fa29b3 /epan/dissectors/packet-dcp-etsi.c | |
parent | fb820f0a07833637cf8bc50c43069af44e4f72df (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.
svn path=/trunk/; revision=21012
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 */ |