diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-03-10 13:45:17 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-03-10 13:45:17 +0000 |
commit | ac5478b335d6a94bbe9098bfbacd19591ca140b8 (patch) | |
tree | 5df4ea1455752f02a1ac00f8c4a9cf894fc7352f /usr.sbin/bgpd/session.c | |
parent | b5e032a2128720b4ad36d1927405e89fd90d809f (diff) |
remove unused function
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r-- | usr.sbin/bgpd/session.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 118fd26c5aa..fbab673f156 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.128 2004/03/10 11:38:33 henning Exp $ */ +/* $OpenBSD: session.c,v 1.129 2004/03/10 13:45:16 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -58,7 +58,6 @@ int timer_due(time_t); void start_timer_holdtime(struct peer *); void start_timer_keepalive(struct peer *); void session_close_connection(struct peer *); -void session_terminate(void); void change_state(struct peer *, enum session_state, enum session_events); int session_setup_socket(struct peer *); void session_accept(int); @@ -634,19 +633,6 @@ session_close_connection(struct peer *peer) } void -session_terminate(void) -{ - struct peer *p; - - for (p = peers; p != NULL; p = p->next) - bgp_fsm(p, EVNT_STOP); - - shutdown(sock, SHUT_RDWR); - close(sock); - sock = -1; -} - -void change_state(struct peer *peer, enum session_state state, enum session_events event) { |