Fix unused and shadow variable errors.
svn path=/trunk/; revision=53200
This commit is contained in:
parent
3a21ccdeba
commit
7f3dd7b499
|
@ -6741,7 +6741,7 @@ dissect_r3_packet (tvbuff_t *tvb, packet_info *pinfo, proto_tree *r3_tree)
|
|||
* Main dissector entry points
|
||||
*/
|
||||
static int
|
||||
dissect_r3_message (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data_U_)
|
||||
dissect_r3_message (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
|
||||
{
|
||||
proto_tree *r3_tree = NULL;
|
||||
|
||||
|
|
|
@ -340,12 +340,12 @@ dissect_fix_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
|
|||
{
|
||||
proto_tree *checksum_tree;
|
||||
guint8 sum = 0;
|
||||
const guint8 *data = tvb_get_ptr(tvb, 0, field_offset);
|
||||
const guint8 *sum_data = tvb_get_ptr(tvb, 0, field_offset);
|
||||
gboolean sum_ok;
|
||||
int j;
|
||||
|
||||
for (j = 0; j < field_offset; j++, data++) {
|
||||
sum += *data;
|
||||
for (j = 0; j < field_offset; j++, sum_data++) {
|
||||
sum += *sum_data;
|
||||
}
|
||||
sum_ok = (atoi(value) == sum);
|
||||
if (sum_ok) {
|
||||
|
|
|
@ -70,7 +70,7 @@ static const value_string system_message_names[] = {
|
|||
};
|
||||
|
||||
static int
|
||||
dissect_fmtp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
|
||||
dissect_fmtp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
|
||||
{
|
||||
guint8 packet_type;
|
||||
guint16 packet_len;
|
||||
|
|
Loading…
Reference in New Issue