diff options
author | portix <none@none> | 2012-06-24 23:58:33 +0200 |
---|---|---|
committer | portix <none@none> | 2012-06-24 23:58:33 +0200 |
commit | cab6bc0ed6119d747f31569f041c731b26368dba (patch) | |
tree | 012cc9af3a205a092a458256eec2f591bc3e8ae5 /src/util.c | |
parent | 934614002d1f5ef9b10c2b268d1f25d65d6eae70 (diff) | |
download | dwb-cab6bc0ed6119d747f31569f041c731b26368dba.zip |
New function dirNames
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) { |