aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/linux/common/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/arch/linux/common/net.h')
-rw-r--r--hardinfo2/arch/linux/common/net.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/hardinfo2/arch/linux/common/net.h b/hardinfo2/arch/linux/common/net.h
index cd8b8706..18135568 100644
--- a/hardinfo2/arch/linux/common/net.h
+++ b/hardinfo2/arch/linux/common/net.h
@@ -134,12 +134,7 @@ net_get_iface_type(gchar *name)
static gboolean
remove_net_devices(gpointer key, gpointer value, gpointer data)
{
- if (!strncmp((gchar *) key, "NET", 4)) {
- g_free((gchar *) key);
- g_free((GtkTreeIter *) value);
- return TRUE;
- }
- return FALSE;
+ return g_str_has_prefix(key, "NET");
}
static void