Deleted Added
full compact
tzsetup.c (43544) tzsetup.c (48121)
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 "$Id: tzsetup.c,v 1.11 1998/12/16 05:34:49 peter Exp $";
37 "$Id: tzsetup.c,v 1.12 1999/02/02 20:26:31 wollman Exp $";
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>

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

650 read_iso3166_table();
651 read_zones();
652 sort_countries();
653 make_menus();
654
655 init_dialog();
656 if (!dialog_yesno("Select local or UTC (Greenwich Mean Time) clock",
657 "Is this machine's CMOS clock set to UTC? If it is set to local time,\n"
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>

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

650 read_iso3166_table();
651 read_zones();
652 sort_countries();
653 make_menus();
654
655 init_dialog();
656 if (!dialog_yesno("Select local or UTC (Greenwich Mean Time) clock",
657 "Is this machine's CMOS clock set to UTC? If it is set to local time,\n"
658 "please choose NO here!", 7, 72)) {
658 "or you don't know, please choose NO here!", 7, 72)) {
659 if (reallydoit)
660 unlink(_PATH_WALL_CMOS_CLOCK);
661 } else {
662 if (reallydoit) {
663 fd = open(_PATH_WALL_CMOS_CLOCK,
664 O_WRONLY|O_CREAT|O_TRUNC, 0666);
665 if (fd < 0)
666 err(1, "create %s", _PATH_WALL_CMOS_CLOCK);

--- 24 unchanged lines hidden ---
659 if (reallydoit)
660 unlink(_PATH_WALL_CMOS_CLOCK);
661 } else {
662 if (reallydoit) {
663 fd = open(_PATH_WALL_CMOS_CLOCK,
664 O_WRONLY|O_CREAT|O_TRUNC, 0666);
665 if (fd < 0)
666 err(1, "create %s", _PATH_WALL_CMOS_CLOCK);

--- 24 unchanged lines hidden ---