diff options
author | Dario Lombardo <lomato@gmail.com> | 2019-01-03 17:38:03 +0100 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-01-03 22:19:55 +0000 |
commit | 14c61f14fce12b4e0616927c7646254fe951a336 (patch) | |
tree | 00d9814c9cc53ae4b2ecf7933a6efcf5624fb43b /extcap.c | |
parent | 0ed9656b905637435d7b65a8b354891549ae2520 (diff) |
extcap: remove redundant casts.
Found by clang-tidy.
Change-Id: Icd4a72d840092ce9c5e18e3d16a94b785b4521dc
Reviewed-on: https://code.wireshark.org/review/31333
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'extcap.c')
-rw-r--r-- | extcap.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |