summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tzsetup
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-04-05 02:46:40 +0000
committerobrien <obrien@FreeBSD.org>2001-04-05 02:46:40 +0000
commit785e958fa38fbcdef67375585efbd28bf2960c79 (patch)
tree0fd3e934fd5c6746cccdefa2cecf226107e2196b /usr.sbin/tzsetup
parent5ab71ff51c4faff83254f7261636e0e8d0f595ec (diff)
downloadFreeBSD-src-785e958fa38fbcdef67375585efbd28bf2960c79.zip
FreeBSD-src-785e958fa38fbcdef67375585efbd28bf2960c79.tar.gz
Default the UTC question to "yes" on the Alpha.
Diffstat (limited to 'usr.sbin/tzsetup')
-rw-r--r--usr.sbin/tzsetup/tzsetup.c13
1 files changed, 10 insertions, 3 deletions
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 {
OpenPOWER on IntegriCloud