aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/tzsetup
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-04-05 02:46:40 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-04-05 02:46:40 +0000
commit2881e5831bc7eb8df2a3404de34435c116884931 (patch)
tree3be9c634bd881cb0df7d03a1ca82e2bb43a9412e /usr.sbin/tzsetup
parent232470f6f674f872850615ee3d2cacfa3908797f (diff)
Notes
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 ee5672e8c685b..af92bd76d6871 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 {