summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-06 16:37:15 +0000
committered <ed@FreeBSD.org>2011-11-06 16:37:15 +0000
commit44d67fb8063193464510caa480c05b874779c43c (patch)
tree0b5ee0f6825100b31315c4fe397e7c659d0f43ee /usr.sbin
parent897775d6ee89e54e447e35fd09436a65a620307d (diff)
downloadFreeBSD-src-44d67fb8063193464510caa480c05b874779c43c.zip
FreeBSD-src-44d67fb8063193464510caa480c05b874779c43c.tar.gz
Simplify inclusion of the tsptype array a bit.
We don't need this array in timed.c -- only readmsg.c.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/timed/timed/readmsg.c3
-rw-r--r--usr.sbin/timed/timed/timed.c1
2 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/timed/timed/readmsg.c b/usr.sbin/timed/timed/readmsg.c
index 0d0d317..e21979a 100644
--- a/usr.sbin/timed/timed/readmsg.c
+++ b/usr.sbin/timed/timed/readmsg.c
@@ -35,10 +35,9 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
+#define TSPTYPES
#include "globals.h"
-extern char *tsptype[];
-
/*
* LOOKAT checks if the message is of the requested type and comes from
* the right machine, returning 1 in case of affirmative answer
diff --git a/usr.sbin/timed/timed/timed.c b/usr.sbin/timed/timed/timed.c
index 149255a..63d1a48 100644
--- a/usr.sbin/timed/timed/timed.c
+++ b/usr.sbin/timed/timed/timed.c
@@ -42,7 +42,6 @@ static char sccsid[] = "@(#)timed.c 8.1 (Berkeley) 6/6/93";
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#define TSPTYPES
#include "globals.h"
#include <net/if.h>
#include <sys/file.h>
OpenPOWER on IntegriCloud