commit 6f97bfcc3c785b2628a29cf8eeec3263cf58eb5a
parent 8f95ab787e7964f000e33e0e3d04f3fecde52339
Author: in0rdr <andreas.gruhler@uzh.ch>
Date: Thu, 15 Dec 2016 15:37:51 +0100
Merge commit '36f0305'
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/diary.c b/diary.c
@@ -213,7 +213,7 @@ bool date_has_entry(char* dir, size_t dir_size, struct tm* i)
return (access(epath, F_OK) != -1);
}
-void get_date_str(struct tm* date, char* date_str, size_t date_str_size)
+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);
}
diff --git a/diary.h b/diary.h
@@ -27,7 +27,7 @@ void display_entry(char* dir, size_t dir_size, struct tm* date, WINDOW* win, int
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);
-void get_date_str(struct tm* date, char* date_str, size_t date_str_size);
+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);
#endif