Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/agr make lacp_timer_funcs static.
details: https://anonhg.NetBSD.org/src/rev/33917ca1ffc0
branches: trunk
changeset: 581413:33917ca1ffc0
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Jun 01 13:34:48 2005 +0000
description:
make lacp_timer_funcs static.
diffstat:
sys/net/agr/ieee8023ad_lacp_impl.h | 5 +----
sys/net/agr/ieee8023ad_lacp_timer.c | 8 +++++---
2 files changed, 6 insertions(+), 7 deletions(-)
diffs (48 lines):
diff -r 5cf8cc6a6047 -r 33917ca1ffc0 sys/net/agr/ieee8023ad_lacp_impl.h
--- a/sys/net/agr/ieee8023ad_lacp_impl.h Wed Jun 01 13:12:49 2005 +0000
+++ b/sys/net/agr/ieee8023ad_lacp_impl.h Wed Jun 01 13:34:48 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee8023ad_lacp_impl.h,v 1.1 2005/03/18 11:11:50 yamt Exp $ */
+/* $NetBSD: ieee8023ad_lacp_impl.h,v 1.2 2005/06/01 13:34:48 yamt Exp $ */
/*-
* Copyright (c)2005 YAMAMOTO Takashi,
@@ -99,9 +99,6 @@
#define LACPPORT_NTT 1 /* need to transmit */
-typedef void (*lacp_timer_func_t)(struct lacp_port *);
-const lacp_timer_func_t lacp_timer_funcs[LACP_NTIMER];
-
#define LACP_SOFTC(sc) \
(&IEEE8023AD_SOFTC(sc)->isc_lacpsc)
#define LACP_PORT(port) \
diff -r 5cf8cc6a6047 -r 33917ca1ffc0 sys/net/agr/ieee8023ad_lacp_timer.c
--- a/sys/net/agr/ieee8023ad_lacp_timer.c Wed Jun 01 13:12:49 2005 +0000
+++ b/sys/net/agr/ieee8023ad_lacp_timer.c Wed Jun 01 13:34:48 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee8023ad_lacp_timer.c,v 1.1 2005/03/18 11:11:50 yamt Exp $ */
+/* $NetBSD: ieee8023ad_lacp_timer.c,v 1.2 2005/06/01 13:34:48 yamt Exp $ */
/*-
* Copyright (c)2005 YAMAMOTO Takashi,
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ieee8023ad_lacp_timer.c,v 1.1 2005/03/18 11:11:50 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee8023ad_lacp_timer.c,v 1.2 2005/06/01 13:34:48 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -41,7 +41,9 @@
#include <net/agr/ieee8023ad_lacp_impl.h>
#include <net/agr/ieee8023ad_lacp_sm.h>
-const lacp_timer_func_t lacp_timer_funcs[LACP_NTIMER] = {
+typedef void (*lacp_timer_func_t)(struct lacp_port *);
+
+const static lacp_timer_func_t lacp_timer_funcs[LACP_NTIMER] = {
[LACP_TIMER_CURRENT_WHILE] = lacp_sm_rx_timer,
[LACP_TIMER_PERIODIC] = lacp_sm_ptx_timer,
[LACP_TIMER_WAIT_WHILE] = lacp_sm_mux_timer,
Home |
Main Index |
Thread Index |
Old Index