aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-beep.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-14 19:01:06 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-14 19:01:06 +0000
commitf2266d87f5acbe8c6d12998a032fdc42ea90e9f3 (patch)
tree707c02c727c9b93d3666b5c9030d6499a85d609c /epan/dissectors/packet-beep.c
parentffaf67b6158b6c9235a7fe96d345419c371f65ff (diff)
[-Wmissing-prototypes]
explicit casts. svn path=/trunk/; revision=48302
Diffstat (limited to 'epan/dissectors/packet-beep.c')
-rw-r--r--epan/dissectors/packet-beep.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/epan/dissectors/packet-beep.c b/epan/dissectors/packet-beep.c
index 7146c77d7a..fcbaf92246 100644
--- a/epan/dissectors/packet-beep.c
+++ b/epan/dissectors/packet-beep.c
@@ -41,6 +41,8 @@
#include <epan/expert.h>
#define TCP_PORT_BEEP 10288
+
+void proto_register_beep(void);
void proto_reg_handoff_beep(void);
static guint global_beep_tcp_port = TCP_PORT_BEEP;
@@ -777,7 +779,7 @@ dissect_beep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* info first.
*/
- beep_frame_data = p_get_proto_data(pinfo->fd, proto_beep);
+ beep_frame_data = (struct beep_proto_data *)p_get_proto_data(pinfo->fd, proto_beep);
if (!beep_frame_data) {
@@ -792,10 +794,10 @@ dissect_beep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (!request_val) { /* Create one */
- new_request_key = se_alloc(sizeof(struct beep_request_key));
+ new_request_key = (struct beep_request_key *)se_alloc(sizeof(struct beep_request_key));
new_request_key->conversation = conversation->index;
- request_val = se_alloc(sizeof(struct beep_request_val));
+ request_val = (struct beep_request_val *)se_alloc(sizeof(struct beep_request_val));
request_val->processed = 0;
request_val->size = 0;
@@ -881,7 +883,7 @@ dissect_beep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (beep_frame_data == NULL) {
- beep_frame_data = se_alloc(sizeof(struct beep_proto_data));
+ beep_frame_data = (struct beep_proto_data *)se_alloc(sizeof(struct beep_proto_data));
beep_frame_data->pl_left = 0;
beep_frame_data->pl_size = 0;