aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tap.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-03-20 01:18:10 +0000
committerBill Meier <wmeier@newsguy.com>2013-03-20 01:18:10 +0000
commit0df5a9390d41149dfc87440d72e7669ba96748ec (patch)
tree8accf4dfc301adfc679ed7f21b7123cb4b2c55f9 /epan/tap.c
parenta43e5a7eb9fe1ad5a89e7cfd556a791a50fefee7 (diff)
From beroset:
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10397 svn path=/trunk/; revision=48438
Diffstat (limited to 'epan/tap.c')
-rw-r--r--epan/tap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/tap.c b/epan/tap.c
index 88b4236522..7ac5e54bc6 100644
--- a/epan/tap.c
+++ b/epan/tap.c
@@ -123,7 +123,7 @@ register_tap(const char *name)
return tap_id;
}
- td=g_malloc(sizeof(tap_dissector_t));
+ td=(tap_dissector_t *)g_malloc(sizeof(tap_dissector_t));
td->next=NULL;
td->name = g_strdup(name);
@@ -399,7 +399,7 @@ register_tap_listener(const char *tapname, void *tapdata, const char *fstring,
return error_string;
}
- tl=g_malloc(sizeof(tap_listener_t));
+ tl=(tap_listener_t *)g_malloc(sizeof(tap_listener_t));
tl->code=NULL;
tl->needs_redraw=TRUE;
tl->flags=flags;