diff options
Diffstat (limited to 'plugins/housekeeping/msd-disk-space.c')
-rw-r--r-- | plugins/housekeeping/msd-disk-space.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/housekeeping/msd-disk-space.c b/plugins/housekeeping/msd-disk-space.c index 22b196c..91738e0 100644 --- a/plugins/housekeeping/msd-disk-space.c +++ b/plugins/housekeeping/msd-disk-space.c @@ -2,6 +2,7 @@ * vim: set et sw=8 ts=8: * * Copyright (c) 2008, Novell, Inc. + * Copyright (C) 2012-2021 MATE Developers * * Authors: Vincent Untz <[email protected]> * @@ -40,7 +41,6 @@ #include "msd-ldsm-dialog.h" #include "msd-ldsm-trash-empty.h" - #define GIGABYTE 1024 * 1024 * 1024 #define CHECK_EVERY_X_SECONDS 60 @@ -279,7 +279,6 @@ ldsm_mount_is_user_ignore (const gchar *path) return FALSE; } - static gboolean is_in (const gchar *value, const gchar *set[]) { @@ -612,8 +611,7 @@ msd_ldsm_get_config (void) SETTINGS_MIN_NOTIFY_PERIOD); if (ignore_paths != NULL) { - g_slist_foreach (ignore_paths, (GFunc) g_free, NULL); - g_slist_free (ignore_paths); + g_slist_free_full (ignore_paths, g_free); ignore_paths = NULL; } @@ -636,7 +634,7 @@ msd_ldsm_get_config (void) } static void -msd_ldsm_update_config (GSettings *settings G_GNUC_UNUSED, +msd_ldsm_update_config (GSettings *gsettings G_GNUC_UNUSED, gchar *key G_GNUC_UNUSED, gpointer user_data G_GNUC_UNUSED) { @@ -696,8 +694,7 @@ msd_ldsm_clean (void) } if (ignore_paths) { - g_slist_foreach (ignore_paths, (GFunc) g_free, NULL); - g_slist_free (ignore_paths); + g_slist_free_full (ignore_paths, g_free); } } |