From b0a11dbc3822271e948f625ca326e86ff68f2e57 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 23 May 2021 21:08:28 -0300 Subject: [PATCH] lib/{open,message}: make some internal functions static They are not used outside their file, so being extern seems like an oversight --- lib/message.cc | 2 +- lib/open.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/message.cc b/lib/message.cc index 7af6ab82..560f2746 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -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; diff --git a/lib/open.cc b/lib/open.cc index 1ca69665..72f1232c 100644 --- a/lib/open.cc +++ b/lib/open.cc @@ -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, -- 2.43.0