aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dns.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-12-02 20:03:10 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-12-02 20:03:10 +0000
commitd924ea6e82c82fab2f8ae2ad40c753d9fe99c848 (patch)
tree5d545d25570ca87f5efc1ac8727d23fdafec0c55 /packet-dns.c
parentae18bf0902a6fecd6cd13aa05fe06d2fbb3b6caf (diff)
"ip6_to_str()" takes a const pointer as an argument, so you don't have
to cast away the constness of pointers passed to it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6718 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-dns.c')
-rw-r--r--packet-dns.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-dns.c b/packet-dns.c
index a6f725282b..164633aae1 100644
--- a/packet-dns.c
+++ b/packet-dns.c
@@ -1,7 +1,7 @@
/* packet-dns.c
* Routines for DNS packet disassembly
*
- * $Id: packet-dns.c,v 1.95 2002/12/01 20:50:52 guy Exp $
+ * $Id: packet-dns.c,v 1.96 2002/12/02 20:03:10 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1312,13 +1312,13 @@ dissect_dns_answer(tvbuff_t *tvb, int offset, int dns_data_offset,
addr6 = tvb_get_ptr(tvb, cur_offset, 16);
if (cinfo != NULL) {
col_append_fstr(cinfo, COL_INFO, " %s",
- ip6_to_str((struct e_in6_addr *)addr6));
+ ip6_to_str((const struct e_in6_addr *)addr6));
}
if (dns_tree != NULL) {
proto_item_append_text(trr, ", addr %s",
- ip6_to_str((struct e_in6_addr *)addr6));
+ ip6_to_str((const struct e_in6_addr *)addr6));
proto_tree_add_text(rr_tree, tvb, cur_offset, 16, "Addr: %s",
- ip6_to_str((struct e_in6_addr *)addr6));
+ ip6_to_str((const struct e_in6_addr *)addr6));
}
}
break;