]> git.notmuchmail.org Git - notmuch/commitdiff
lib: constify argument to notmuch_database_status_string
authorDavid Bremner <david@tethera.net>
Sun, 7 Jun 2015 15:02:00 +0000 (17:02 +0200)
committerDavid Bremner <david@tethera.net>
Fri, 4 Sep 2015 11:24:38 +0000 (08:24 -0300)
We don't modify the database struct, so no harm in committing to that.

lib/database.cc
lib/notmuch.h

index b3ffd04dad56ae484544d55cb2e8208961f6004d..6d0e5a63fd81c6b4163860e84b1e6af8258394bb 100644 (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;
 }
index 8639b383f3352c2e7842fc47de94101b9f490860..86b5b4de4502be96f353b836ffaf22a6171a7f43 100644 (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.