aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dns.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-16 16:25:41 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-16 16:25:41 +0000
commit263a9d068391ece88bf6678586551a5780e50ad2 (patch)
tree71d6bdd48306278138d1391b48a34ddf7e7326d0 /epan/dissectors/packet-dns.c
parentc7dd35dffc56269e61decf1b0317c45573d3084d (diff)
[-Wmissing-prototypes]
Use explicit casts. svn path=/trunk/; revision=48341
Diffstat (limited to 'epan/dissectors/packet-dns.c')
-rw-r--r--epan/dissectors/packet-dns.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/dissectors/packet-dns.c b/epan/dissectors/packet-dns.c
index 8c462694ab..5298519aa4 100644
--- a/epan/dissectors/packet-dns.c
+++ b/epan/dissectors/packet-dns.c
@@ -49,6 +49,9 @@
#include <epan/expert.h>
#include <epan/afn.h>
+void proto_register_dns(void);
+void proto_reg_handoff_dns(void);
+
static int proto_dns = -1;
static int hf_dns_length = -1;
static int hf_dns_flags = -1;
@@ -3130,9 +3133,9 @@ dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset,
goto bad_rr;
}
if (afamily == 1 && afdpart_len <= 4) {
- addr_copy = se_alloc0(4);
+ addr_copy = (guint8 *)se_alloc0(4);
} else if (afamily == 2 && afdpart_len <= 16) {
- addr_copy = se_alloc0(16);
+ addr_copy = (guint8 *)se_alloc0(16);
} else {
goto bad_rr;
}