summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1996-08-20 23:51:20 +0000
committerwosch <wosch@FreeBSD.org>1996-08-20 23:51:20 +0000
commitaeac748e2f70c0ec1b050a17b2d45125f3e5ce0d (patch)
tree39da5270d62f2111f3d266fa7c7c4e31c80f39ca /usr.sbin
parent14a5500ac5c72141c158f0b8a6d0baf666709697 (diff)
downloadFreeBSD-src-aeac748e2f70c0ec1b050a17b2d45125f3e5ce0d.zip
FreeBSD-src-aeac748e2f70c0ec1b050a17b2d45125f3e5ce0d.tar.gz
add pathnames.h, -Wall cleanup
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/tzsetup/main.c8
-rw-r--r--usr.sbin/tzsetup/pathnames.h31
-rw-r--r--usr.sbin/tzsetup/tzmenu.c5
3 files changed, 35 insertions, 9 deletions
diff --git a/usr.sbin/tzsetup/main.c b/usr.sbin/tzsetup/main.c
index 6869dd4..6a46538 100644
--- a/usr.sbin/tzsetup/main.c
+++ b/usr.sbin/tzsetup/main.c
@@ -28,7 +28,7 @@
*/
static const char rcsid[] =
- "$Id: main.c,v 1.7 1996/04/01 08:17:49 joerg Exp $";
+ "$Id: main.c,v 1.8 1996/07/03 01:17:34 jkh Exp $";
#include <sys/types.h>
#include <sys/stat.h>
@@ -40,12 +40,10 @@ static const char rcsid[] =
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
+#include <unistd.h>
#include "tzsetup.h"
-
-#define PATH_LOCALTIME "/etc/localtime"
-#define PATH_WALL_CMOS_CLOCK "/etc/wall_cmos_clock"
-#define PATH_ZONEINFO "/usr/share/zoneinfo"
+#include "pathnames.h"
static int set_time();
diff --git a/usr.sbin/tzsetup/pathnames.h b/usr.sbin/tzsetup/pathnames.h
new file mode 100644
index 0000000..006b2d7
--- /dev/null
+++ b/usr.sbin/tzsetup/pathnames.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 1996
+ * FreeBSD Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY FreeBSD Inc. AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL [your name] OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $Id$
+ */
+
+#define PATH_LOCALTIME "/etc/localtime"
+#define PATH_WALL_CMOS_CLOCK "/etc/wall_cmos_clock"
+#define PATH_ZONEINFO "/usr/share/zoneinfo"
diff --git a/usr.sbin/tzsetup/tzmenu.c b/usr.sbin/tzsetup/tzmenu.c
index 3fb89c6..dbcba71 100644
--- a/usr.sbin/tzsetup/tzmenu.c
+++ b/usr.sbin/tzsetup/tzmenu.c
@@ -28,7 +28,7 @@
*/
static const char rcsid[] =
- "$Id: tzmenu.c,v 1.3 1996/03/22 22:22:40 joerg Exp $";
+ "$Id: tzmenu.c,v 1.4 1996/03/31 09:55:02 joerg Exp $";
#include <stdio.h>
#include <ncurses.h>
@@ -75,8 +75,6 @@ tzmenu(void)
int item = 0;
int sc = 0;
const char *res;
- struct winsize win;
- char *cp;
while(1) {
dialog_clear();
@@ -155,7 +153,6 @@ location_menu(const struct country *ctry, const char *name)
int rv;
int item = 0;
int sc = 0;
- const char *res;
snprintf(title, sizeof title, "Timezone Selector - %s", name);
OpenPOWER on IntegriCloud