aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cdp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-15 06:26:47 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-15 06:26:47 +0000
commitef249623e636f650138419de0e42db84c53f3263 (patch)
tree469c739dd566a492e46ef7d5cb8cb0e57bc684cb /epan/dissectors/packet-cdp.c
parentaa3ebebefeb74119ce253f19cf1fa44670131d5f (diff)
[-Wmissing-prototypes]
Use explicit casts. svn path=/trunk/; revision=48313
Diffstat (limited to 'epan/dissectors/packet-cdp.c')
-rw-r--r--epan/dissectors/packet-cdp.c5
1 files changed, 4 insertions, 1 deletions
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];