mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
cli/count: simplify and document return value of print_count
Essentially a cosmetic change.
This commit is contained in:
parent
65a6b86873
commit
81bd41c7cb
1 changed files with 2 additions and 1 deletions
|
@ -67,6 +67,7 @@ count_files (notmuch_query_t *query)
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* return 0 on success, -1 on failure */
|
||||||
static int
|
static int
|
||||||
print_count (notmuch_database_t *notmuch, const char *query_str,
|
print_count (notmuch_database_t *notmuch, const char *query_str,
|
||||||
const char **exclude_tags, size_t exclude_tags_length, int output, int print_lastmod)
|
const char **exclude_tags, size_t exclude_tags_length, int output, int print_lastmod)
|
||||||
|
@ -81,7 +82,7 @@ print_count (notmuch_database_t *notmuch, const char *query_str,
|
||||||
query = notmuch_query_create (notmuch, query_str);
|
query = notmuch_query_create (notmuch, query_str);
|
||||||
if (query == NULL) {
|
if (query == NULL) {
|
||||||
fprintf (stderr, "Out of memory\n");
|
fprintf (stderr, "Out of memory\n");
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < exclude_tags_length; i++)
|
for (i = 0; i < exclude_tags_length; i++)
|
||||||
|
|
Loading…
Reference in a new issue