diary

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

commit 63c41312dbeb32d617614d3ec255fc8cf7a90d93
parent 7c9349b92cf16987199d9fe7050e7b28431940c5
Author: in0rdr <andreas.gruhler@uzh.ch>
Date:   Thu, 15 Dec 2016 15:45:18 +0100

Merge commit '3280e23'

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

diff --git a/diary.c b/diary.c @@ -159,7 +159,7 @@ void display_entry(const char* dir, size_t dir_size, const struct tm* date, WIND } /* Writes edit command for 'date' entry to 'rcmd'. '*rcmd' is NULL on error. */ -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 @@ -24,7 +24,7 @@ void update_date(WINDOW* header); bool go_to(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);