Add some const correctness to talloc 'ctx' parameter.

The tentacles of const just keep reaching out.
This commit is contained in:
Carl Worth 2009-11-17 19:10:37 -08:00
parent 0da0131096
commit 8b23a828c2
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);