From 14c61f14fce12b4e0616927c7646254fe951a336 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Thu, 3 Jan 2019 17:38:03 +0100 Subject: extcap: remove redundant casts. Found by clang-tidy. Change-Id: Icd4a72d840092ce9c5e18e3d16a94b785b4521dc Reviewed-on: https://code.wireshark.org/review/31333 Petri-Dish: Dario Lombardo Petri-Dish: Guy Harris Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris --- extcap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extcap.c b/extcap.c index db6f79ab6b..9bf7067018 100644 --- a/extcap.c +++ b/extcap.c @@ -913,7 +913,7 @@ static gboolean cb_reload_preference(extcap_callback_info_t cb_info) arguments = extcap_parse_values(cb_info.output); - walker = g_list_first((GList *)(arguments)); + walker = g_list_first(arguments); while (walker != NULL) { extcap_value * val = (extcap_value *)walker->data; @@ -979,7 +979,7 @@ extcap_has_configuration(const char *ifname, gboolean is_required) gboolean found = FALSE; - arguments = extcap_get_if_configuration((const char *)(ifname)); + arguments = extcap_get_if_configuration(ifname); walker = g_list_first(arguments); while (walker != NULL && !found) @@ -1791,7 +1791,7 @@ process_new_extcap(const char *extcap, char *output) if ( g_list_find(interface_keys, int_iter->call) ) { g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_WARNING, "Extcap interface \"%s\" is already provided by \"%s\" ", - int_iter->call, (gchar *)extcap_if_executable(int_iter->call)); + int_iter->call, extcap_if_executable(int_iter->call)); walker = g_list_next(walker); continue; } -- cgit v1.2.3