aboutsummaryrefslogtreecommitdiffstats
path: root/extcap_parser.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2018-05-02 18:39:01 +0200
committerAnders Broman <a.broman58@gmail.com>2018-05-03 04:13:48 +0000
commit5905fcd4dc54759ab6e7a64778ac38d4f2551a8a (patch)
tree65c832e8d4d299c88f4dec2f61507cece5b06716 /extcap_parser.c
parent092564a336118606e3ee4f41e27ec440aa32b88f (diff)
extcap_parser.c: fix compilation with gcc 8
extcap_parser.c:291:23: error: cast between incompatible function types from ‘void (*)(extcap_arg *)’ {aka ‘void (*)(struct _extcap_arg *)’} to ‘void (*)(void *, void *)’ [-Werror=cast-function-type] Change-Id: I7a03bdffa655ffb3a0160f205ddcb9943a52564c Reviewed-on: https://code.wireshark.org/review/27266 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'extcap_parser.c')
-rw-r--r--extcap_parser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/extcap_parser.c b/extcap_parser.c
index 24608d4af5..75d248abf1 100644
--- a/extcap_parser.c
+++ b/extcap_parser.c
@@ -288,8 +288,7 @@ static void extcap_free_toolbar_control(iface_toolbar_control *c) {
}
void extcap_free_arg_list(GList *a) {
- g_list_foreach(a, (GFunc)extcap_free_arg, NULL);
- g_list_free(a);
+ g_list_free_full(a, (GDestroyNotify)extcap_free_arg);
}
static gint glist_find_numbered_arg(gconstpointer listelem, gconstpointer needle) {