summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 856a68d)
raw | patch | inline | side by side (parent: 856a68d)
author | Florian Forster <octo@huhu.verplant.org> | |
Fri, 25 Dec 2009 10:13:55 +0000 (11:13 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 25 Dec 2009 22:15:28 +0000 (23:15 +0100) |
src/filecount.c | patch | blob | history |
diff --git a/src/filecount.c b/src/filecount.c
index 9f6ea564bf8c2624df27f9844f98f5a524aa5b14..47f99e91c8e3df2a502208ba6f99f6596afe10e1 100644 (file)
--- a/src/filecount.c
+++ b/src/filecount.c
if (S_ISDIR (statbuf.st_mode) && (dir->options & FC_RECURSIVE))
{
- if(dir->options & FC_HIDDEN)
- status = walk_directory (abs_path, fc_read_dir_callback, dir,/* include hidden */1);
- else
- status = walk_directory (abs_path, fc_read_dir_callback, dir,/* include hidden */ 0);
+ status = walk_directory (abs_path, fc_read_dir_callback, dir,
+ /* include hidden = */ (dir->options & FC_HIDDEN) ? 1 : 0);
return (status);
}
else if (!S_ISREG (statbuf.st_mode))
if (dir->mtime != 0)
dir->now = time (NULL);
- if(dir->options & FC_HIDDEN)
- status = walk_directory (dir->path, fc_read_dir_callback, dir,/* include hidden */ 1);
- else
- status = walk_directory (dir->path, fc_read_dir_callback, dir,/* include hidden */ 0);
+ status = walk_directory (dir->path, fc_read_dir_callback, dir,
+ /* include hidden */ (dir->options & FC_HIDDEN) ? 1 : 0);
if (status != 0)
{
WARNING ("filecount plugin: walk_directory (%s) failed.", dir->path);