errx(1, "%s: unknown queue %x", __func__, queue);
event_errx(1, "%s: unknown queue %x", __func__, queue);
event_queue_remove(struct event *ev, int queue){	if (!(ev->ev_flags & queue))		errx(1, "%s: %p(fd %d) not on queue %x", __func__,		    ev, ev->ev_fd, queue);	ev->ev_flags &= ~queue;	switch (queue) {	case EVLIST_ACTIVE:		TAILQ_REMOVE(&activequeue, ev, ev_active_next);		break;	case EVLIST_SIGNAL:		TAILQ_REMOVE(&signalqueue, ev, ev_signal_next);		break;	case EVLIST_TIMEOUT:		RB_REMOVE(event_tree, &timetree, ev);		break;	case EVLIST_INSERTED:		TAILQ_REMOVE(&eventqueue, ev, ev_next);		break;	default:		errx(1, "%s: unknown queue %x", __func__, queue);	}}