summaryrefslogtreecommitdiff
path: root/usr.sbin/tzsetup
diff options
context:
space:
mode:
authorJohn Hay <jhay@FreeBSD.org>1997-02-01 18:36:27 +0000
committerJohn Hay <jhay@FreeBSD.org>1997-02-01 18:36:27 +0000
commit29f9a22a0d55f726dbc6744664f887121bd36998 (patch)
treeebcba513d642c6592a94771ee257fb94a2ac45cf /usr.sbin/tzsetup
parentce6f3eb6e495849e2f34abe5fe87b9b544900df5 (diff)
Notes
Diffstat (limited to 'usr.sbin/tzsetup')
-rw-r--r--usr.sbin/tzsetup/tzsetup.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c
index d3f06bc81fce..0b57f1ae9c6c 100644
--- a/usr.sbin/tzsetup/tzsetup.c
+++ b/usr.sbin/tzsetup/tzsetup.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: tzsetup.c,v 1.1 1996/11/19 18:09:40 wollman Exp $
+ * $Id: tzsetup.c,v 1.2 1996/11/19 23:21:52 joerg Exp $
*/
/*
@@ -159,7 +159,8 @@ struct zone {
* of the two-letter variety, so we just size this array to suit.
* Beats worrying about dynamic allocation.
*/
-static struct country countries[26*26];
+#define NCOUNTRIES (26*26)
+static struct country countries[NCOUNTRIES];
#define CODE2INT(s) ((s[0] - 'A') * 26 + (s[1] - 'A'))
/*
@@ -291,7 +292,7 @@ compare_countries(const void *xa, const void *xb)
static void
sort_countries(void)
{
- qsort(countries, 576, sizeof countries[0], compare_countries);
+ qsort(countries, NCOUNTRIES, sizeof countries[0], compare_countries);
}
static void