aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ip.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-21 17:34:41 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-21 17:34:41 +0000
commit4cf7cdd387d3caca7729521f8f89ec5123322c05 (patch)
tree5d212d2dde19b495d966274eca27fe0b2748ca82 /epan/dissectors/packet-ip.c
parent4f6f488c20f5d43b78b939f71328d3c12a01dc56 (diff)
fix some warnings.
svn path=/trunk/; revision=54334
Diffstat (limited to 'epan/dissectors/packet-ip.c')
-rw-r--r--epan/dissectors/packet-ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c
index b4fde3a10e..fd64067607 100644
--- a/epan/dissectors/packet-ip.c
+++ b/epan/dissectors/packet-ip.c
@@ -2208,7 +2208,7 @@ dissect_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
src_host = get_hostname(addr);
if (ip_summary_in_tree) {
proto_item_append_text(ti, ", Src: %s (%s)", src_host,
- ip_to_str((guint8 *)iph->ip_src.data));
+ ip_to_str((const guint8 *)iph->ip_src.data));
}
proto_tree_add_ipv4(ip_tree, hf_ip_src, tvb, offset + 12, 4, addr);
item = proto_tree_add_ipv4(ip_tree, hf_ip_addr, tvb, offset + 12, 4, addr);
@@ -2276,7 +2276,7 @@ dissect_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
cur_rt = tvb_get_ipv4(tvb, offset + 16);
if (ip_summary_in_tree) {
proto_item_append_text(ti, ", Dst: %s (%s)", dst_host,
- ip_to_str((guint8 *)iph->ip_dst.data));
+ ip_to_str((const guint8 *)iph->ip_dst.data));
if (dst_off)
proto_item_append_text(ti, ", Via: %s (%s)", get_hostname(cur_rt),
ip_to_str((gchar *)&cur_rt));