diary

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

commit c8f92d39262bfb048542028f7a65255f74656324
parent 36f030553069f0dea3a57f03d2789e0963dd9f33
Author: Matthias Beyer <mail@beyermatthias.de>
Date:   Mon, 28 Nov 2016 19:47:46 +0100

fpath() 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 @@ -225,7 +225,7 @@ void get_date_str(const struct tm* date, char* date_str, size_t date_str_size) strftime(date_str, date_str_size, DATE_FMT, date); } -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 @@ -29,6 +29,6 @@ void edit_cmd(char* dir, size_t dir_size, struct tm* date, char* rcmd, size_t rc 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