diary

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

commit 3280e23ef65e4cde025f361d39afac239aa1d948
parent 995e16027772933360a8a37f5419f3a32dcbb2bc
Author: Matthias Beyer <mail@beyermatthias.de>
Date:   Mon, 28 Nov 2016 19:49:25 +0100

edit_cmd() gets constant params

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

diff --git a/diary.c b/diary.c @@ -168,7 +168,7 @@ void display_entry(const char* dir, size_t dir_size, const struct tm* date, WIND wrefresh(win); } -void edit_cmd(char* dir, size_t dir_size, struct tm* date, char* rcmd, size_t rcmd_size) +void edit_cmd(const char* dir, size_t dir_size, const struct tm* date, char* rcmd, size_t rcmd_size) { // get editor from environment char* editor = getenv("EDITOR"); diff --git a/diary.h b/diary.h @@ -25,7 +25,7 @@ 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(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); +void edit_cmd(const char* dir, size_t dir_size, const struct tm* date, char* rcmd, size_t rcmd_size); 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);