diary

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

commit 2ad0186aa9e2d8a278f93ca32a3348f73c5f441b
parent 6f97bfcc3c785b2628a29cf8eeec3263cf58eb5a
Author: in0rdr <andreas.gruhler@uzh.ch>
Date:   Thu, 15 Dec 2016 15:40:33 +0100

Merge commit 'c8f92d3'

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

diff --git a/diary.c b/diary.c @@ -219,7 +219,7 @@ void get_date_str(const struct tm* date, char* date_str, size_t date_str_size) } /* Writes file path for 'date' entry to 'rpath'. '*rpath' is NULL on error. */ -void fpath(char* dir, size_t dir_size, struct tm* date, char** rpath, size_t rpath_size) +void fpath(const char* dir, size_t dir_size, const struct tm* date, char** rpath, size_t rpath_size) { // check size of result path if (dir_size + 1 > rpath_size) { diff --git a/diary.h b/diary.h @@ -28,6 +28,6 @@ void edit_cmd(char* dir, size_t dir_size, struct tm* date, char** rcmd, size_t r bool date_has_entry(char* dir, size_t dir_size, struct tm* i); void get_date_str(const struct tm* date, char* date_str, size_t date_str_size); -void fpath(char* dir, size_t dir_size, struct tm* date, char** rpath, size_t rpath_size); +void fpath(const char* dir, size_t dir_size, const struct tm* date, char** rpath, size_t rpath_size); #endif