]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database.cc
lib: constify argument to notmuch_database_status_string
[notmuch] / lib / database.cc
index bab333412de1c9edb713b222ebad0400b6cf8987..6d0e5a63fd81c6b4163860e84b1e6af8258394bb 100644 (file)
@@ -1441,6 +1441,8 @@ notmuch_database_upgrade (notmuch_database_t *notmuch,
        notmuch_message_t *message;
        char *filename;
 
+       /* XXX: this should use the _st version, but needs an error
+          path */
        for (messages = notmuch_query_search_messages (query);
             notmuch_messages_valid (messages);
             notmuch_messages_move_to_next (messages))
@@ -2651,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;
 }