From 785e958fa38fbcdef67375585efbd28bf2960c79 Mon Sep 17 00:00:00 2001 From: obrien Date: Thu, 5 Apr 2001 02:46:40 +0000 Subject: Default the UTC question to "yes" on the Alpha. --- usr.sbin/tzsetup/tzsetup.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'usr.sbin/tzsetup') diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c index ee5672e..af92bd7 100644 --- a/usr.sbin/tzsetup/tzsetup.c +++ b/usr.sbin/tzsetup/tzsetup.c @@ -641,6 +641,13 @@ int main(int argc, char **argv) { int c, fd; + int (*dialog_utc)(unsigned char *, unsigned char *, int, int); + +#if defined(__alpha__) + dialog_utc = dialog_yesno; +#else + dialog_utc = dialog_noyes; +#endif while ((c = getopt(argc, argv, "n")) != -1) { switch(c) { @@ -665,9 +672,9 @@ main(int argc, char **argv) make_menus(); init_dialog(); - if (!dialog_noyes("Select local or UTC (Greenwich Mean Time) clock", - "Is this machine's CMOS clock set to UTC? If it is set to local time,\n" - "or you don't know, please choose NO here!", 7, 72)) { + if (!dialog_utc("Select local or UTC (Greenwich Mean Time) clock", + "Is this machine's CMOS clock set to UTC? If it is set to local time,\n" + "or you don't know, please choose NO here!", 7, 72)) { if (reallydoit) unlink(_PATH_WALL_CMOS_CLOCK); } else { -- cgit v1.1