diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-21 18:21:25 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-21 18:21:25 +0000 |
commit | ea056ddbeaa034e795d4767e2705c140eb0686c1 (patch) | |
tree | 3d0178a397aae4764da6dd35954056d3eaf273ce /usr.sbin | |
parent | 0f23cb47eca5cddce63081e10be18eece9a8428d (diff) |
queued_reads in struct peer was not ever used exept for an initialization to 0
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 3 | ||||
-rw-r--r-- | usr.sbin/bgpd/session.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 04ffa8aa3d5..cea79893c0d 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.7 2003/12/21 16:11:33 claudio Exp $ */ +/* $OpenBSD: bgpd.h,v 1.8 2003/12/21 18:21:24 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -121,7 +121,6 @@ struct peer { int sock; int events; int queued_writes; - int queued_reads; int queued_imsg_writes; struct peer_buf_read *rbuf; struct peer *next; diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 5d4a28a96e2..e81d2f47222 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.23 2003/12/20 21:43:45 claudio Exp $ */ +/* $OpenBSD: session.c,v 1.24 2003/12/21 18:21:24 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -589,7 +589,7 @@ change_state(struct peer *peer, enum session_state state, buf_peer_remove(peer); free(peer->rbuf); peer->rbuf = NULL; - peer->queued_writes = peer->queued_reads = 0; + peer->queued_writes = 0; if (peer->state == STATE_ESTABLISHED) session_down(peer); if (event != EVNT_STOP) { |