aboutsummaryrefslogtreecommitdiffstats
path: root/fileset.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-04-30 12:56:40 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-04-30 12:56:40 +0000
commitab066c9e876dc219975ce8faa8f8ffc3def89b86 (patch)
tree55c75d708ea58b697383757895a54a1aeb380b1f /fileset.c
parent64fc9ea0020123ed0ee588b613faa7fa97cd0884 (diff)
fix buildbot reported problems (unix related), part 4, more GLib 1.x related
svn path=/trunk/; revision=14240
Diffstat (limited to 'fileset.c')
-rw-r--r--fileset.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fileset.c b/fileset.c
index fb661c0..42455a9 100644
--- a/fileset.c
+++ b/fileset.c
@@ -265,7 +265,7 @@ fileset_add_dir(const char *fname)
/* go through the files in the directory and check if it's part of the current file set */
#if GLIB_MAJOR_VERSION < 2
- if ((dir = opendir(dirname)) != NULL) {
+ if ((dir = opendir(dirname->str)) != NULL) {
while ((file = readdir(dir)) != NULL) {
name = (gchar *)file->d_name;
#else
@@ -281,7 +281,9 @@ fileset_add_dir(const char *fname)
}
}
+#if GLIB_MAJOR_VERSION >= 2
g_free(dummy);
+#endif
g_string_free(dirname, TRUE /* free_segment */);
/* sort entries by creation time */
@@ -364,7 +366,7 @@ fileset_get_previous(void)
/* delete a single entry */
-void fileset_entry_delete(gpointer data, gpointer user_data)
+void fileset_entry_delete(gpointer data, gpointer user_data _U_)
{
fileset_entry *entry = data;