diary

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

commit 995e16027772933360a8a37f5419f3a32dcbb2bc
parent f22086d743002fa486ad1e431a190272948802f9
Author: Matthias Beyer <mail@beyermatthias.de>
Date:   Mon, 28 Nov 2016 19:48:50 +0100

display_entry() gets constant parameters

Diffstat:
Mdiary.c | 2+-
Mdiary.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/diary.c b/diary.c @@ -141,7 +141,7 @@ bool go_to(struct app_state* s, } /* Update window 'win' with diary entry from date 'date' */ -void display_entry(char* dir, size_t dir_size, struct tm* date, WINDOW* win, int width) +void display_entry(const char* dir, size_t dir_size, const struct tm* date, WINDOW* win, int width) { char buff[width]; char path[100]; diff --git a/diary.h b/diary.h @@ -24,7 +24,7 @@ void draw_calendar(struct app_state*, WINDOW* number_pad, WINDOW* month_pad, cha void update_date(struct app_state*, WINDOW* header); bool go_to(struct app_state*, WINDOW* calendar, WINDOW* aside, time_t date, int* cur_pad_pos); -void display_entry(char* dir, size_t dir_size, struct tm* date, WINDOW* win, int width); +void display_entry(const char* dir, size_t dir_size, const struct tm* date, WINDOW* win, int width); void edit_cmd(char* dir, size_t dir_size, struct tm* date, char* rcmd, size_t rcmd_size); bool date_has_entry(const char* dir, size_t dir_size, const struct tm* i);