From: David Bremner Date: Sun, 7 Jun 2015 15:02:00 +0000 (+0200) Subject: lib: constify argument to notmuch_database_status_string X-Git-Tag: 0.21_rc0~48 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=bd5504ec10edf6a1442d92774dc06fafc0b46e3f;hp=9ee29ad6f0805dc55e63f8a04a68a1f55d0c382b lib: constify argument to notmuch_database_status_string We don't modify the database struct, so no harm in committing to that. --- 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.