From bd5504ec10edf6a1442d92774dc06fafc0b46e3f Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 7 Jun 2015 17:02:00 +0200 Subject: [PATCH] lib: constify argument to notmuch_database_status_string We don't modify the database struct, so no harm in committing to that. --- lib/database.cc | 2 +- lib/notmuch.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index b3ffd04d..6d0e5a63 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -2653,7 +2653,7 @@ notmuch_database_get_all_tags (notmuch_database_t *db) } const char * -notmuch_database_status_string (notmuch_database_t *notmuch) +notmuch_database_status_string (const notmuch_database_t *notmuch) { return notmuch->status_string; } diff --git a/lib/notmuch.h b/lib/notmuch.h index 8639b383..86b5b4de 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -313,7 +313,7 @@ notmuch_database_open_verbose (const char *path, * */ const char * -notmuch_database_status_string (notmuch_database_t *notmuch); +notmuch_database_status_string (const notmuch_database_t *notmuch); /** * Commit changes and close the given notmuch database.