]> git.notmuchmail.org Git - notmuch/commitdiff
lib/{open,message}: make some internal functions static
authorDavid Bremner <david@tethera.net>
Mon, 24 May 2021 00:08:28 +0000 (21:08 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 5 Jun 2021 18:40:00 +0000 (15:40 -0300)
They are not used outside their file, so being extern seems like an oversight

lib/message.cc
lib/open.cc

index 7af6ab82a721699ac7f09153724b9e8038484b2a..560f274658538d78ab72869251de0bc970557497 100644 (file)
@@ -742,7 +742,7 @@ _notmuch_message_remove_terms (notmuch_message_t *message, const char *prefix)
  * properties, along with any automatic tags*/
 /* According to Xapian API docs, none of these calls throw
  * exceptions */
-notmuch_private_status_t
+static notmuch_private_status_t
 _notmuch_message_remove_indexed_terms (notmuch_message_t *message)
 {
     Xapian::TermIterator i;
index 1ca69665c4e446ce4023b90713a86376c91310ee..72f1232c1a990399407680779f2204b7f56a8a30 100644 (file)
@@ -242,7 +242,7 @@ _choose_database_path (void *ctx,
     return NOTMUCH_STATUS_SUCCESS;
 }
 
-notmuch_database_t *
+static notmuch_database_t *
 _alloc_notmuch ()
 {
     notmuch_database_t *notmuch;
@@ -755,7 +755,7 @@ notmuch_database_reopen (notmuch_database_t *notmuch,
     return NOTMUCH_STATUS_SUCCESS;
 }
 
-notmuch_status_t
+static notmuch_status_t
 _maybe_load_config_from_database (notmuch_database_t *notmuch,
                                  GKeyFile *key_file,
                                  const char *database_path,