static void save_events(FILE *f, struct event *ev) { while (ev) { save_one_event(f, ev); ev = ev->next; } }
static void save_events(struct membuffer *b, struct event *ev) { while (ev) { save_one_event(b, ev); ev = ev->next; } }