Mercurial > geeqie.yaz
diff src/ui_fileops.c @ 442:4b2d7f9af171
Big whitespaces cleanup:
- drop whitespaces at end of lines
- convert eight spaces to tab at start of lines
- drop spurious spaces mixed with tabs
- remove empty lines at end of files
author | zas_ |
---|---|
date | Sun, 20 Apr 2008 13:04:57 +0000 |
parents | 6802aeeed196 |
children | ddabc4873a3f |
line wrap: on
line diff
--- a/src/ui_fileops.c Sun Apr 20 10:05:27 2008 +0000 +++ b/src/ui_fileops.c Sun Apr 20 13:04:57 2008 +0000 @@ -34,7 +34,7 @@ *----------------------------------------------------------------------------- * generic file information and manipulation routines (public) *----------------------------------------------------------------------------- - */ + */ @@ -226,28 +226,28 @@ gint isdir(const gchar *s) { struct stat st; - + return (stat_utf8(s ,&st) && S_ISDIR(st.st_mode)); } gint islink(const gchar *s) { struct stat st; - + return (lstat_utf8(s ,&st) && S_ISLNK(st.st_mode)); } gint64 filesize(const gchar *s) { struct stat st; - + if (!stat_utf8(s, &st)) return 0; return (gint)st.st_size; } time_t filetime(const gchar *s) { - struct stat st; + struct stat st; if (!stat_utf8(s, &st)) return 0; return st.st_mtime; @@ -611,13 +611,13 @@ while (work) { gchar *path; - + path = work->data; work = work->next; - + new_list = g_list_prepend(new_list, g_strdup(path)); } - + return g_list_reverse(new_list); }