Terminal *term = (Terminal *)frontend; struct gui_data *inst = (struct gui_data *)term->frontend;
struct gui_data *inst = (struct gui_data *)frontend;
void connection_fatal(void *frontend, char *p, ...){    Terminal *term = (Terminal *)frontend;    struct gui_data *inst = (struct gui_data *)term->frontend;    va_list ap;    char *msg;    va_start(ap, p);    msg = dupvprintf(p, ap);    va_end(ap);    inst->exited = TRUE;    fatal_message_box(inst->window, msg);    sfree(msg);    if (inst->cfg.close_on_exit == FORCE_ON)        cleanup_exit(1);}