From ef249623e636f650138419de0e42db84c53f3263 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Fri, 15 Mar 2013 06:26:47 +0000 Subject: [-Wmissing-prototypes] Use explicit casts. svn path=/trunk/; revision=48313 --- epan/dissectors/packet-cdp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-cdp.c') diff --git a/epan/dissectors/packet-cdp.c b/epan/dissectors/packet-cdp.c index 3558a8bbce..038e5dc2d7 100644 --- a/epan/dissectors/packet-cdp.c +++ b/epan/dissectors/packet-cdp.c @@ -50,6 +50,9 @@ * for some more information on CDP version 2. */ +void proto_register_cdp(void); +void proto_reg_handoff_cdp(void); + /* Offsets in TLV structure. */ #define TLV_TYPE 0 #define TLV_LENGTH 2 @@ -242,7 +245,7 @@ dissect_cdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (data_length & 1) { guint8 *padded_buffer; /* Allocate new buffer */ - padded_buffer = ep_alloc(data_length+1); + padded_buffer = (guint8 *)ep_alloc(data_length+1); tvb_memcpy(tvb, padded_buffer, 0, data_length); /* Swap bytes in last word */ padded_buffer[data_length] = padded_buffer[data_length-1]; -- cgit v1.2.3