summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2008-10-03 15:20:30 +0000
committerEric Faurot <eric@cvs.openbsd.org>2008-10-03 15:20:30 +0000
commit16644455cf8a2cc91cbfb5e57e4ab4588b94246d (patch)
tree221c2b40239b00ca5cd6b1583661d6505fbc1dbf /usr.sbin/bgpd
parent9bae92f720d85bb27dece953647f82292e7cda7c (diff)
Unify code between the various flavors of imsg buffer.c.
Use unsigned int for msg_iovlen. ok henning@ claudio@
Diffstat (limited to 'usr.sbin/bgpd')
-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 a25818cef78..36574934d8e 100644
--- a/usr.sbin/bgpd/buffer.c
+++ b/usr.sbin/bgpd/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.39 2008/03/24 16:11:02 deraadt Exp $ */
+/* $OpenBSD: buffer.c,v 1.40 2008/10/03 15:20:29 eric Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -152,13 +152,13 @@ msgbuf_write(struct msgbuf *msgbuf)
{
struct iovec iov[IOV_MAX];
struct buf *buf, *next;
- int i = 0;
+ unsigned int i = 0;
ssize_t n;
struct msghdr msg;
struct cmsghdr *cmsg;
union {
- struct cmsghdr hdr;
- char buf[CMSG_SPACE(sizeof(int))];
+ struct cmsghdr hdr;
+ char buf[CMSG_SPACE(sizeof(int))];
} cmsgbuf;
bzero(&iov, sizeof(iov));