summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd/buffer.c')
-rw-r--r--usr.sbin/bgpd/buffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/buffer.c b/usr.sbin/bgpd/buffer.c
index b10618fd437..4d91dc05434 100644
--- a/usr.sbin/bgpd/buffer.c
+++ b/usr.sbin/bgpd/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.17 2004/02/19 13:54:58 claudio Exp $ */
+/* $OpenBSD: buffer.c,v 1.18 2004/04/29 19:56:04 deraadt Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -116,7 +116,7 @@ void
msgbuf_init(struct msgbuf *msgbuf)
{
msgbuf->queued = 0;
- msgbuf->sock = -1;
+ msgbuf->fd = -1;
TAILQ_INIT(&msgbuf->bufs);
}
@@ -152,7 +152,7 @@ msgbuf_write(struct msgbuf *msgbuf)
i++;
}
- if ((n = writev(msgbuf->sock, iov, i)) == -1) {
+ if ((n = writev(msgbuf->fd, iov, i)) == -1) {
if (errno == EAGAIN) /* cannot write immediately */
return (0);
else
@@ -195,7 +195,7 @@ msgbuf_writebound(struct msgbuf *msgbuf)
return (1);
buf = TAILQ_FIRST(&msgbuf->bufs);
- if ((n = buf_write(msgbuf->sock, buf)) < 0)
+ if ((n = buf_write(msgbuf->fd, buf)) < 0)
return (n);
if (n == 1) { /* everything written out */