mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-24 02:14:52 +01:00
Add some const correctness to talloc 'ctx' parameter.
The tentacles of const just keep reaching out.
This commit is contained in:
parent
0da0131096
commit
8b23a828c2
2 changed files with 2 additions and 2 deletions
|
@ -124,7 +124,7 @@ int
|
|||
notmuch_tag_command (void *ctx, int argc, char *argv[]);
|
||||
|
||||
const char *
|
||||
notmuch_time_relative_date (void *ctx, time_t then);
|
||||
notmuch_time_relative_date (const void *ctx, time_t then);
|
||||
|
||||
void
|
||||
notmuch_time_print_formatted_seconds (double seconds);
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
#define DAY (24 * HOUR)
|
||||
#define RELATIVE_DATE_MAX 20
|
||||
const char *
|
||||
notmuch_time_relative_date (void *ctx, time_t then)
|
||||
notmuch_time_relative_date (const void *ctx, time_t then)
|
||||
{
|
||||
struct tm tm_now, tm_then;
|
||||
time_t now = time(NULL);
|
||||
|
|
Loading…
Reference in a new issue