diff options
author | Gerald Combs <gerald@wireshark.org> | 2017-12-01 11:13:18 -0800 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-12-01 21:09:24 +0000 |
commit | 28b6616ea0d39cc699e4db9bccbb7948a55c7239 (patch) | |
tree | 34ae0358ecc0349f0e76ab741fd436115612614c /cfile.c | |
parent | 219c5463d121a2ed51820fdda60a48e3fa27c6ca (diff) |
Get rid of some void pointers.
Explictly struct _capture_file * in epan_session and its callbacks.
Change-Id: I63703015c661a08f3350a7448a7bcdaf98f119dc
Reviewed-on: https://code.wireshark.org/review/24675
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'cfile.c')
-rw-r--r-- | cfile.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -19,9 +19,8 @@ #include "cfile.h" const char * -cap_file_get_interface_name(void *data, guint32 interface_id) +cap_file_get_interface_name(struct _capture_file *cf, guint32 interface_id) { - capture_file *cf = (capture_file *) data; wtapng_iface_descriptions_t *idb_info; wtap_block_t wtapng_if_descr = NULL; char* interface_name; @@ -43,9 +42,8 @@ cap_file_get_interface_name(void *data, guint32 interface_id) } const char * -cap_file_get_interface_description(void *data, guint32 interface_id) +cap_file_get_interface_description(struct _capture_file *cf, guint32 interface_id) { - capture_file *cf = (capture_file *) data; wtapng_iface_descriptions_t *idb_info; wtap_block_t wtapng_if_descr = NULL; char* interface_name; |