if (data == MUTT_UNGROUP && (mutt_str_strcasecmp(buf->data, "*") == 0))
{
- if (mutt_group_context_clear(&gc) < 0)
- goto bail;
+ mutt_group_context_clear(&gc);
goto out;
}
/**
* mutt_group_context_clear - Clear a GroupList
* @param head GroupList to clear
- * @retval 0 Always
*/
-int mutt_group_context_clear(struct GroupList *head)
+void mutt_group_context_clear(struct GroupList *head)
{
struct GroupNode *np = STAILQ_FIRST(head), *next = NULL;
while (np)
np = next;
}
STAILQ_INIT(head);
- return 0;
}
/**
bool mutt_group_match(struct Group *g, const char *s);
-int mutt_group_context_clear(struct GroupList *head);
+void mutt_group_context_clear(struct GroupList *head);
int mutt_group_context_remove_regex(struct GroupList *head, const char *s);
int mutt_group_context_remove_addrlist(struct GroupList *head, struct Address *a);