From fac155815cfaa3b151a196643c90f5a1820348e3 Mon Sep 17 00:00:00 2001 From: rhn Date: Mon, 17 Dec 2018 17:57:48 +0000 Subject: [PATCH] docs: Use correct call to notmuch_query_search_threads in usage example Amended by db: simplify (subjectively) the example. --- lib/notmuch.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/notmuch.h b/lib/notmuch.h index aa032e09..24708f3c 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -889,10 +889,12 @@ notmuch_query_add_tag_exclude (notmuch_query_t *query, const char *tag); * notmuch_query_t *query; * notmuch_threads_t *threads; * notmuch_thread_t *thread; + * notmuch_status_t stat; * * query = notmuch_query_create (database, query_string); * - * for (threads = notmuch_query_search_threads (query); + * for (stat = notmuch_query_search_threads (query, &threads); + * stat == NOTMUCH_STATUS_SUCCESS && * notmuch_threads_valid (threads); * notmuch_threads_move_to_next (threads)) * { -- 2.43.0