| 2453 | } |
| 2454 | |
| 2455 | static void |
| 2456 | list_countries(void) |
| 2457 | { |
| 2458 | struct regdata *rdp = getregdata(); |
| 2459 | const struct country *cp; |
| 2460 | const struct regdomain *dp; |
| 2461 | int i; |
| 2462 | |
| 2463 | i = 0; |
| 2464 | printf("\nCountry codes:\n"); |
| 2465 | LIST_FOREACH(cp, &rdp->countries, next) { |
| 2466 | printf("%2s %-15.15s%s", cp->isoname, |
| 2467 | cp->name, ((i+1)%4) == 0 ? "\n" : " "); |
| 2468 | i++; |
| 2469 | } |
| 2470 | i = 0; |
| 2471 | printf("\nRegulatory domains:\n"); |
| 2472 | LIST_FOREACH(dp, &rdp->domains, next) { |
| 2473 | printf("%-15.15s%s", dp->name, ((i+1)%4) == 0 ? "\n" : " "); |
| 2474 | i++; |
| 2475 | } |
| 2476 | printf("\n"); |
| 2477 | } |
| 2478 | |
| 2479 | static void |
| 2480 | defaultcountry(const struct regdomain *rd) |
no test coverage detected