diary

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

commit f61e35fe9b6d2b868b92b34c97690e9635c02dd0
parent 2ad0186aa9e2d8a278f93ca32a3348f73c5f441b
Author: in0rdr <andreas.gruhler@uzh.ch>
Date:   Thu, 15 Dec 2016 15:41:20 +0100

Merge commit 'f22086d'

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

diff --git a/diary.c b/diary.c @@ -197,7 +197,7 @@ void edit_cmd(char* dir, size_t dir_size, struct tm* date, char** rcmd, size_t r strcat(*rcmd, path); } -bool date_has_entry(char* dir, size_t dir_size, struct tm* i) +bool date_has_entry(const char* dir, size_t dir_size, const struct tm* i) { char epath[100]; char* pepath = epath; diff --git a/diary.h b/diary.h @@ -26,7 +26,7 @@ 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 edit_cmd(char* dir, size_t dir_size, struct tm* date, char** rcmd, size_t rcmd_size); -bool date_has_entry(char* dir, size_t dir_size, struct tm* i); +bool date_has_entry(const char* dir, size_t dir_size, const struct tm* i); void get_date_str(const struct tm* date, char* date_str, size_t date_str_size); void fpath(const char* dir, size_t dir_size, const struct tm* date, char** rpath, size_t rpath_size);