aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2006-05-14 08:17:39 +0000
committerAnders Broman <anders.broman@ericsson.com>2006-05-14 08:17:39 +0000
commite49fe267e61897b1404444c401981c62c873d021 (patch)
tree1ef12285de97180356de28fb15a2a8cedf6908d5 /epan
parentdb2af21552dfad2825d6af3b9272b6627c4aa511 (diff)
Remove stupid code.
svn path=/trunk/; revision=18148
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-snmp.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c
index 0072acd7d1..685b952ac0 100644
--- a/epan/dissectors/packet-snmp.c
+++ b/epan/dissectors/packet-snmp.c
@@ -1246,6 +1246,7 @@ dissect_snmp_Empty(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_
+
return offset;
}
static int dissect_empty(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
@@ -1314,23 +1315,9 @@ static int dissect_counter_value(packet_info *pinfo, proto_tree *tree, tvbuff_t
static int
dissect_snmp_TimeTicks(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
-#line 242 "snmp.cnf"
-int start_offset;
-guint8 octet1,octet2,octet3,octet4;
-
- start_offset = offset;
- offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
+ offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
NULL);
-
- octet1 = tvb_get_guint8(tvb,start_offset+2);
- octet2 = tvb_get_guint8(tvb,start_offset+3);
- octet3 = tvb_get_guint8(tvb,start_offset+4);
- octet4 = tvb_get_guint8(tvb,start_offset+5);
- proto_tree_add_text(tree, tvb, start_offset+2, 4, "Time Ticks: %u:%u:%u:%u",octet1,octet2,octet3,octet4);
-
-
-
return offset;
}
static int dissect_timeticks_value(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {