diary

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

commit 7c9349b92cf16987199d9fe7050e7b28431940c5
parent f61e35fe9b6d2b868b92b34c97690e9635c02dd0
Author: in0rdr <andreas.gruhler@uzh.ch>
Date:   Thu, 15 Dec 2016 15:42:38 +0100

Merge commit '995e160'

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

diff --git a/diary.c b/diary.c @@ -130,7 +130,7 @@ bool go_to(WINDOW* calendar, WINDOW* aside, time_t date, int* cur_pad_pos) } /* 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 path[100]; char* ppath = path; diff --git a/diary.h b/diary.h @@ -23,7 +23,7 @@ void draw_calendar(WINDOW* number_pad, WINDOW* month_pad, char* diary_dir, size_ void update_date(WINDOW* header); bool go_to(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);