commit f22086d743002fa486ad1e431a190272948802f9
parent c8f92d39262bfb048542028f7a65255f74656324
Author: Matthias Beyer <mail@beyermatthias.de>
Date: Mon, 28 Nov 2016 19:48:15 +0100
date_has_entry() gets constant parameters
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/diary.c b/diary.c
@@ -205,7 +205,7 @@ void edit_cmd(char* dir, size_t dir_size, struct tm* date, char* rcmd, size_t rc
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];
diff --git a/diary.h b/diary.h
@@ -27,7 +27,7 @@ bool go_to(struct app_state*, WINDOW* calendar, WINDOW* aside, time_t date, int*
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);