tzsetup.c (60833) | tzsetup.c (60938) |
---|---|
1/* 2 * Copyright 1996 Massachusetts Institute of Technology 3 * 4 * Permission to use, copy, modify, and distribute this software and 5 * its documentation for any purpose and without fee is hereby 6 * granted, provided that both the above copyright notice and this 7 * permission notice appear in all copies, that both the above 8 * copyright notice and this permission notice appear in all --- 20 unchanged lines hidden (view full) --- 29 30/* 31 * Second attempt at a `tzmenu' program, using the separate description 32 * files provided in newer tzdata releases. 33 */ 34 35#ifndef lint 36static const char rcsid[] = | 1/* 2 * Copyright 1996 Massachusetts Institute of Technology 3 * 4 * Permission to use, copy, modify, and distribute this software and 5 * its documentation for any purpose and without fee is hereby 6 * granted, provided that both the above copyright notice and this 7 * permission notice appear in all copies, that both the above 8 * copyright notice and this permission notice appear in all --- 20 unchanged lines hidden (view full) --- 29 30/* 31 * Second attempt at a `tzmenu' program, using the separate description 32 * files provided in newer tzdata releases. 33 */ 34 35#ifndef lint 36static const char rcsid[] = |
37 "$FreeBSD: head/usr.sbin/tzsetup/tzsetup.c 60833 2000-05-23 20:41:01Z jake $"; | 37 "$FreeBSD: head/usr.sbin/tzsetup/tzsetup.c 60938 2000-05-26 02:09:24Z jake $"; |
38#endif /* not lint */ 39 40#include <sys/types.h> 41#include <dialog.h> 42#include <err.h> 43#include <errno.h> 44#include <stdio.h> 45#include <stdlib.h> --- 95 unchanged lines hidden (view full) --- 141} 142 143struct country { 144 char *name; 145 char *tlc; 146 int nzones; 147 char *filename; /* use iff nzones < 0 */ 148 struct continent *continent; /* use iff nzones < 0 */ | 38#endif /* not lint */ 39 40#include <sys/types.h> 41#include <dialog.h> 42#include <err.h> 43#include <errno.h> 44#include <stdio.h> 45#include <stdlib.h> --- 95 unchanged lines hidden (view full) --- 141} 142 143struct country { 144 char *name; 145 char *tlc; 146 int nzones; 147 char *filename; /* use iff nzones < 0 */ 148 struct continent *continent; /* use iff nzones < 0 */ |
149 TAILQ_HEAD(, struct zone) zones; /* use iff nzones > 0 */ | 149 TAILQ_HEAD(, zone) zones; /* use iff nzones > 0 */ |
150 dialogMenuItem *submenu; /* use iff nzones > 0 */ 151}; 152 153struct zone { | 150 dialogMenuItem *submenu; /* use iff nzones > 0 */ 151}; 152 153struct zone { |
154 TAILQ_ENTRY(struct zone) link; | 154 TAILQ_ENTRY(zone) link; |
155 char *descr; 156 char *filename; 157 struct continent *continent; 158}; 159 160/* 161 * This is the easiest organization... we use ISO 3166 country codes, 162 * of the two-letter variety, so we just size this array to suit. --- 542 unchanged lines hidden --- | 155 char *descr; 156 char *filename; 157 struct continent *continent; 158}; 159 160/* 161 * This is the easiest organization... we use ISO 3166 country codes, 162 * of the two-letter variety, so we just size this array to suit. --- 542 unchanged lines hidden --- |