aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2015-06-07 17:02:00 +0200
committerDavid Bremner <david@tethera.net>2015-09-04 08:24:38 -0300
commitbd5504ec10edf6a1442d92774dc06fafc0b46e3f (patch)
tree81495925cdaa4ecdf1fb6f349ae0d19e45505ad1 /lib
parent9ee29ad6f0805dc55e63f8a04a68a1f55d0c382b (diff)
lib: constify argument to notmuch_database_status_string
We don't modify the database struct, so no harm in committing to that.
Diffstat (limited to 'lib')
-rw-r--r--lib/database.cc2
-rw-r--r--lib/notmuch.h2
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.