diff options
author | Carl Worth <cworth@cworth.org> | 2009-11-17 19:10:37 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-11-17 19:10:37 -0800 |
commit | 8b23a828c250c2711924511b85de6301de8b3f23 (patch) | |
tree | c92c7abfdfb3b51a61defe5d602a4e4c0ef55bf3 | |
parent | 0da0131096c83311b91b00bd72f05fb1902c595d (diff) |
Add some const correctness to talloc 'ctx' parameter.
The tentacles of const just keep reaching out.
-rw-r--r-- | notmuch-client.h | 2 | ||||
-rw-r--r-- | 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); |