diff options
| author | David Bremner <david@tethera.net> | 2014-12-26 18:34:49 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-03-29 00:34:15 +0100 |
| commit | 9d192da683b0656e37fc8d69c69698ca605926b3 (patch) | |
| tree | 83434ee169901d44821ce11e406d6363cfe1afc8 /lib/database.cc | |
| parent | 736ac26407914425a9c94e86616225292cf716dd (diff) | |
lib: eliminate fprintf from _notmuch_message_file_open
You may wonder why _notmuch_message_file_open_ctx has two parameters.
This is because we need sometime to use a ctx which is a
notmuch_message_t. While we could get the database from this, there is
no easy way in C to tell type we are getting.
Diffstat (limited to 'lib/database.cc')
| -rw-r--r-- | lib/database.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/database.cc b/lib/database.cc index 416d99c2..cffab62c 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -2314,7 +2314,7 @@ notmuch_database_add_message (notmuch_database_t *notmuch, if (ret) return ret; - message_file = _notmuch_message_file_open (filename); + message_file = _notmuch_message_file_open (notmuch, filename); if (message_file == NULL) return NOTMUCH_STATUS_FILE_ERROR; |
