aboutsummaryrefslogtreecommitdiffstats
path: root/fileset.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-04-30 11:24:52 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-04-30 11:24:52 +0000
commit64fc9ea0020123ed0ee588b613faa7fa97cd0884 (patch)
treec56568e0fdd5e37af22cbfed8480b4de7e343983 /fileset.c
parent6380ee999940353761b80f7b7cd907dcc2cc44ef (diff)
fix buildbot reported problems (unix related), part 3, don't use GError with GLib 1.x
svn path=/trunk/; revision=14239
Diffstat (limited to 'fileset.c')
-rw-r--r--fileset.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fileset.c b/fileset.c
index d0f0200..fb661c0 100644
--- a/fileset.c
+++ b/fileset.c
@@ -110,7 +110,7 @@ fileset_filename_match_pattern(const char *fname)
while(minlen--) {
baselen--;
- if(!isdigit(filename[baselen])) {
+ if(!isdigit( (int) filename[baselen])) {
g_free(filename);
return FALSE;
}
@@ -255,9 +255,6 @@ fileset_add_dir(const char *fname)
dirname = g_string_append_c(dirname, G_DIR_SEPARATOR);
- dummy = g_malloc(sizeof(GError *));
- *dummy = NULL;
-
/* if the current file can't be part of any fileset, do nothing */
if(!fileset_filename_match_pattern(fname)) {
entry = fileset_add_file(dirname->str, get_basename(fname), TRUE /* current */);
@@ -272,6 +269,9 @@ fileset_add_dir(const char *fname)
while ((file = readdir(dir)) != NULL) {
name = (gchar *)file->d_name;
#else
+ dummy = g_malloc(sizeof(GError *));
+ *dummy = NULL;
+
if ((dir = g_dir_open(dirname->str, 0, dummy)) != NULL) {
while ((name = g_dir_read_name(dir)) != NULL) {
#endif