lib: note remaining uses of deprecated message search API

The two remaining cases in the lib seem to require more than a simple
replacement of the old call, with the new call plus a check of the
return value.
This commit is contained in:
David Bremner 2015-06-07 17:01:58 +02:00
parent f16944c3b4
commit 110694b00b
2 changed files with 4 additions and 0 deletions

View file

@ -1441,6 +1441,8 @@ notmuch_database_upgrade (notmuch_database_t *notmuch,
notmuch_message_t *message; notmuch_message_t *message;
char *filename; char *filename;
/* XXX: this should use the _st version, but needs an error
path */
for (messages = notmuch_query_search_messages (query); for (messages = notmuch_query_search_messages (query);
notmuch_messages_valid (messages); notmuch_messages_valid (messages);
notmuch_messages_move_to_next (messages)) notmuch_messages_move_to_next (messages))

View file

@ -504,6 +504,8 @@ _notmuch_thread_create (void *ctx,
* oldest or newest subject is desired. */ * oldest or newest subject is desired. */
notmuch_query_set_sort (thread_id_query, NOTMUCH_SORT_OLDEST_FIRST); notmuch_query_set_sort (thread_id_query, NOTMUCH_SORT_OLDEST_FIRST);
/* XXX: this should use the _st version, but it needs an error path
*/
for (messages = notmuch_query_search_messages (thread_id_query); for (messages = notmuch_query_search_messages (thread_id_query);
notmuch_messages_valid (messages); notmuch_messages_valid (messages);
notmuch_messages_move_to_next (messages)) notmuch_messages_move_to_next (messages))