Lines Matching refs:zp
399 struct zone *zp; in add_zone_to_country() local
416 zp = malloc(sizeof(*zp)); in add_zone_to_country()
417 if (zp == NULL) in add_zone_to_country()
418 errx(1, "malloc(%zu)", sizeof(*zp)); in add_zone_to_country()
423 zp->descr = strdup(descr); in add_zone_to_country()
424 if (zp->descr == NULL) in add_zone_to_country()
426 zp->filename = strdup(file); in add_zone_to_country()
427 if (zp->filename == NULL) in add_zone_to_country()
429 zp->continent = cont; in add_zone_to_country()
430 TAILQ_INSERT_TAIL(&cp->zones, zp, link); in add_zone_to_country()
533 struct zone *zp, *zp2; in make_menus() local
550 TAILQ_FOREACH(zp, &cp->zones, link) { in make_menus()
551 cont = zp->continent; in make_menus()
556 if (zp2 == zp) in make_menus()
557 zp->continent->nitems++; in make_menus()
601 TAILQ_FOREACH(zp, &cp->zones, link) { in make_menus()
602 cont = zp->continent; in make_menus()
606 dmi->title = zp->descr; in make_menus()
608 dmi->data = zp; in make_menus()
614 if (zp2 != zp) in make_menus()
678 struct zone *zp = dmi->data; in set_zone_multi() local
681 if (!confirm_zone(zp->filename)) in set_zone_multi()
684 rv = install_zoneinfo(zp->filename); in set_zone_multi()