~cdv/aoc-2020

69692f07d2ce89ce1f7ebb2802d5e60e91e041b1 — Chris Vittal 3 years ago 00fa823 + d40094c
Merge branch 'main' of git.sr.ht:~cdv/aoc-2020 into main
1 files changed, 3 insertions(+), 1 deletions(-)

M c/util/run.c
M c/util/run.c => c/util/run.c +3 -1
@@ 220,7 220,9 @@ main(int argc, char **argv)

	if (all) {
		/* already validated that year is ok */
		ndays = today->tm_year == config.year ? today->tm_mday : 25;
		ndays = today->tm_year == config.year
			? (today->tm_mday > 25 ? 25 : today->tm_mday)
			: 25;
		days = ALL_DAYS;
	} else {
		iqsort(days, ndays);