lib: constify argument to notmuch_database_status_string

We don't modify the database struct, so no harm in committing to that.
This commit is contained in:
David Bremner 2015-06-07 17:02:00 +02:00
parent 9ee29ad6f0
commit bd5504ec10
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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.