aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/main.c b/main.c
index c3400ad..442594e 100644
--- a/main.c
+++ b/main.c
@@ -236,16 +236,8 @@ int main(int argc, char *argv[]) {
exit(1);
}
if (do_all) {
- struct dirent *dp;
- DIR *dir;
- dir = opendir(journalroot);
- while ((dp = readdir(dir)) != NULL) {
- if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, ".."))
- continue;
- if (isdigit(*dp->d_name)) {
- for (int w = week; w < WEEK_MAX; w++)
- dump_week(journalroot, year, w, style);
- }
+ for (int w = week; w < WEEK_MAX; w++) {
+ dump_week(journalroot, year, w, style);
}
} else {
if (dump_week(journalroot, year, week, style) < 0) {