summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-03-09 09:32:38 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-03-09 09:32:38 +0000
commitba2b615d13399baefe94e03832845006a617f352 (patch)
treeb9203489008181ff9ec4aff8489888bf24ae2504 /usr.sbin
parent832f6610a368b89aec164c56bf0648de08eeb879 (diff)
if_event_names is only used by interface.c so move it there.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ospfd/interface.c13
-rw-r--r--usr.sbin/ospfd/ospfd.h13
2 files changed, 13 insertions, 13 deletions
diff --git a/usr.sbin/ospfd/interface.c b/usr.sbin/ospfd/interface.c
index 605e60963c4..f4b90917fd4 100644
--- a/usr.sbin/ospfd/interface.c
+++ b/usr.sbin/ospfd/interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.c,v 1.42 2006/03/08 15:35:07 claudio Exp $ */
+/* $OpenBSD: interface.c,v 1.43 2006/03/09 09:32:37 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -69,6 +69,17 @@ struct {
static int vlink_cnt = 0;
+const char * const if_event_names[] = {
+ "NOTHING",
+ "UP",
+ "WAITTIMER",
+ "BACKUPSEEN",
+ "NEIGHBORCHANGE",
+ "LOOP",
+ "UNLOOP",
+ "DOWN"
+};
+
const char * const if_action_names[] = {
"NOTHING",
"START",
diff --git a/usr.sbin/ospfd/ospfd.h b/usr.sbin/ospfd/ospfd.h
index e14cf91eb2a..8196ae1b60a 100644
--- a/usr.sbin/ospfd/ospfd.h
+++ b/usr.sbin/ospfd/ospfd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.h,v 1.47 2006/03/08 13:49:07 claudio Exp $ */
+/* $OpenBSD: ospfd.h,v 1.48 2006/03/09 09:32:37 claudio Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -203,17 +203,6 @@ enum iface_event {
IF_EVT_DOWN
};
-static const char * const if_event_names[] = {
- "NOTHING",
- "UP",
- "WAITTIMER",
- "BACKUPSEEN",
- "NEIGHBORCHANGE",
- "LOOP",
- "UNLOOP",
- "DOWN"
-};
-
/* interface actions */
enum iface_action {
IF_ACT_NOTHING,