summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorportix <none@none>2012-06-24 23:58:33 +0200
committerportix <none@none>2012-06-24 23:58:33 +0200
commitcab6bc0ed6119d747f31569f041c731b26368dba (patch)
tree012cc9af3a205a092a458256eec2f591bc3e8ae5 /src/util.c
parent934614002d1f5ef9b10c2b268d1f25d65d6eae70 (diff)
downloaddwb-cab6bc0ed6119d747f31569f041c731b26368dba.zip
New function dirNames
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c5
1 files changed, 3 insertions, 2 deletions
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) {