From 8b23a828c250c2711924511b85de6301de8b3f23 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 17 Nov 2009 19:10:37 -0800 Subject: [PATCH 1/1] Add some const correctness to talloc 'ctx' parameter. The tentacles of const just keep reaching out. --- notmuch-client.h | 2 +- notmuch-time.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notmuch-client.h b/notmuch-client.h index 1081a159..1e2a016a 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -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); diff --git a/notmuch-time.c b/notmuch-time.c index de56db9e..e250c3d5 100644 --- a/notmuch-time.c +++ b/notmuch-time.c @@ -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); -- 2.43.0