summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-12-21 18:21:24 +0000
committerhenning <henning@openbsd.org>2003-12-21 18:21:24 +0000
commit578c88913c397edbe40dbd2ee137f1730c63da42 (patch)
treea17f033d15ab4e10efc9e230a3de6e161dcb577c
parentuse pipe(2)s instead of socketpair(2)s. (diff)
downloadwireguard-openbsd-578c88913c397edbe40dbd2ee137f1730c63da42.tar.xz
wireguard-openbsd-578c88913c397edbe40dbd2ee137f1730c63da42.zip
queued_reads in struct peer was not ever used exept for an initialization to 0
-rw-r--r--usr.sbin/bgpd/bgpd.h3
-rw-r--r--usr.sbin/bgpd/session.c4
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) {