send_filterset(struct imsgbuf *i, struct filter_set_head *set, int id, int f)
send_filterset(struct imsgbuf *i, struct filter_set_head *set, int id)
send_filterset(struct imsgbuf *i, struct filter_set_head *set, int id, int f){	struct filter_set	*s;	for (s = SIMPLEQ_FIRST(set); s != NULL; ) {		if (imsg_compose(i, IMSG_FILTER_SET, id, 0, -1, s,		    sizeof(struct filter_set)) == -1)			return (-1);		if (f) {			SIMPLEQ_REMOVE_HEAD(set, entry);			free(s);			s = SIMPLEQ_FIRST(set);		} else			s = SIMPLEQ_NEXT(s, entry);	}	return (0);}