diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-01-26 02:19:21 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2016-02-07 23:21:04 +0000 |
commit | 847a713d12f9e39cd3f07b52ac8d77814e90c3db (patch) | |
tree | fbbbe0406a9261eef1e8b3ad6b5335535abe523d /epan/proto_data.c | |
parent | 2ecb5a9d52b8a9c278328cc18ae3db3584514d19 (diff) |
proto_data: Remove superfluous casts
The casts should be to gpointer but are unnecessary.
Change-Id: I27229750ec53138820cce30b6fcc083d3ae5bea1
Reviewed-on: https://code.wireshark.org/review/13810
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'epan/proto_data.c')
-rw-r--r-- | epan/proto_data.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/proto_data.c b/epan/proto_data.c index bee7ad41db..d17b2a449e 100644 --- a/epan/proto_data.c +++ b/epan/proto_data.c @@ -89,7 +89,7 @@ p_add_proto_data(wmem_allocator_t *tmp_scope, struct _packet_info* pinfo, int pr p1->proto_data = proto_data; /* Add it to the GSLIST */ - *proto_list = g_slist_prepend(*proto_list, (gpointer *)p1); + *proto_list = g_slist_prepend(*proto_list, p1); } void * @@ -103,9 +103,9 @@ p_get_proto_data(wmem_allocator_t *scope, struct _packet_info* pinfo, int proto, temp.proto_data = NULL; if (scope == pinfo->pool) { - item = g_slist_find_custom(pinfo->proto_data, (gpointer *)&temp, p_compare); + item = g_slist_find_custom(pinfo->proto_data, &temp, p_compare); } else { - item = g_slist_find_custom(pinfo->fd->pfd, (gpointer *)&temp, p_compare); + item = g_slist_find_custom(pinfo->fd->pfd, &temp, p_compare); } if (item) { @@ -128,10 +128,10 @@ p_remove_proto_data(wmem_allocator_t *scope, struct _packet_info* pinfo, int pro temp.proto_data = NULL; if (scope == pinfo->pool) { - item = g_slist_find_custom(pinfo->fd->pfd, (gpointer *)&temp, p_compare); + item = g_slist_find_custom(pinfo->fd->pfd, &temp, p_compare); proto_list = &pinfo->proto_data; } else { - item = g_slist_find_custom(pinfo->fd->pfd, (gpointer *)&temp, p_compare); + item = g_slist_find_custom(pinfo->fd->pfd, &temp, p_compare); proto_list = &pinfo->fd->pfd; } |