Deleted Added
full compact
tzsetup.c (66907) tzsetup.c (70092)
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 66907 2000-10-10 01:50:26Z wollman $";
37 "$FreeBSD: head/usr.sbin/tzsetup/tzsetup.c 70092 2000-12-16 05:29:38Z jkh $";
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>

--- 616 unchanged lines hidden (view full) ---

662 (void)umask(S_IWGRP|S_IWOTH);
663
664 read_iso3166_table();
665 read_zones();
666 sort_countries();
667 make_menus();
668
669 init_dialog();
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>

--- 616 unchanged lines hidden (view full) ---

662 (void)umask(S_IWGRP|S_IWOTH);
663
664 read_iso3166_table();
665 read_zones();
666 sort_countries();
667 make_menus();
668
669 init_dialog();
670 if (!dialog_yesno("Select local or UTC (Greenwich Mean Time) clock",
670 if (!dialog_noyes("Select local or UTC (Greenwich Mean Time) clock",
671 "Is this machine's CMOS clock set to UTC? If it is set to local time,\n"
672 "or you don't know, please choose NO here!", 7, 72)) {
673 if (reallydoit)
674 unlink(_PATH_WALL_CMOS_CLOCK);
675 } else {
676 if (reallydoit) {
677 fd = open(_PATH_WALL_CMOS_CLOCK,
678 O_WRONLY|O_CREAT|O_TRUNC,

--- 27 unchanged lines hidden ---
671 "Is this machine's CMOS clock set to UTC? If it is set to local time,\n"
672 "or you don't know, please choose NO here!", 7, 72)) {
673 if (reallydoit)
674 unlink(_PATH_WALL_CMOS_CLOCK);
675 } else {
676 if (reallydoit) {
677 fd = open(_PATH_WALL_CMOS_CLOCK,
678 O_WRONLY|O_CREAT|O_TRUNC,

--- 27 unchanged lines hidden ---