fix buildbot reported problems (unix related), part 4, more GLib 1.x related
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 30 Apr 2005 12:56:40 +0000 (12:56 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 30 Apr 2005 12:56:40 +0000 (12:56 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14240 f5534014-38df-0310-8fa8-9805f1628bb7

fileset.c

index fb661c0a56bdc326fcfa77df554ea7b49825a865..42455a97be6c80fba8c8478f3d4b29380c6af980 100644 (file)
--- 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;