diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 915bff239839ac8c17a3ec87b6dc24ad74eeb952
parent 749f9247b697b13a5c176e884fc037d9a3071f91
Author: in0rdr <andreas.gruhler@uzh.ch>
Date:   Sat, 19 Nov 2016 09:21:04 +0800

Fix C99/C11 mode error

Diffstat:
Mdiary.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/diary.c b/diary.c @@ -19,7 +19,8 @@ struct tm cal_end; static const char* WEEKDAYS[] = {"Mo","Tu","We","Th","Fr","Sa","Su", NULL}; void draw_wdays(WINDOW* head) { - for (char** wd = (char**)WEEKDAYS; *wd; wd++) { + char** wd = (char**)WEEKDAYS; + for (wd = (char**)WEEKDAYS; *wd; wd++) { waddstr(head, *wd); waddch(head, ' '); }