summaryrefslogtreecommitdiff
path: root/extcap/ciscodump.c
diff options
context:
space:
mode:
Diffstat (limited to 'extcap/ciscodump.c')
-rw-r--r--extcap/ciscodump.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/extcap/ciscodump.c b/extcap/ciscodump.c
index fda78d86de..fb79240afb 100644
--- a/extcap/ciscodump.c
+++ b/extcap/ciscodump.c
@@ -28,6 +28,7 @@
#include <wsutil/interface.h>
#include <wsutil/strtoi.h>
#include <wsutil/filesystem.h>
+#include <wsutil/glib-compat.h>
#include <extcap/ssh-base.h>
#include <writecap/pcapio.h>
@@ -113,12 +114,7 @@ static char* local_interfaces_to_filter(const unsigned int remote_port)
{
GSList* interfaces = local_interfaces_to_list();
char* filter = interfaces_list_to_filter(interfaces, remote_port);
-#if GLIB_CHECK_VERSION(2, 28, 0)
g_slist_free_full(interfaces, g_free);
-#else
- g_slist_foreach(interfaces, (GFunc)g_free, NULL);
- g_slist_free(interfaces);
-#endif
return filter;
}