From cab6bc0ed6119d747f31569f041c731b26368dba Mon Sep 17 00:00:00 2001 From: portix Date: Sun, 24 Jun 2012 23:58:33 +0200 Subject: New function dirNames --- src/util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 6d8b79f1..e6a2aee5 100644 --- a/src/util.c +++ b/src/util.c @@ -247,11 +247,12 @@ util_get_directory_content(GString *buffer, const char *dirname, const char *ext GDir *dir; char *content; GError *error = NULL; - char *filename, *filepath; + const char *filename; + char *filepath; char *firstdot; if ( (dir = g_dir_open(dirname, 0, NULL)) ) { - while ( (filename = (char*)g_dir_read_name(dir)) ) { + while ( (filename = g_dir_read_name(dir)) ) { if (*filename == '.') continue; if (extension) { -- cgit v1.2.3