summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/hello.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-01-31 08:55:01 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-01-31 08:55:01 +0000
commiteb527a8af6bced89a36bf8d8a2c6417207e3bdf0 (patch)
treef79024b7363da7e0aeacf2629a5ad7473518353b /usr.sbin/ospfd/hello.c
parent7742b22905d9b1ceef8191d116bd7fe827a074ac (diff)
Pass the buffer to send_packet() instead of spliting it up. This removes
some direct access to struct buf internals in the rest of ospfe. Based on a larger buffer cleanup diff that was OK norby@ henning@
Diffstat (limited to 'usr.sbin/ospfd/hello.c')
-rw-r--r--usr.sbin/ospfd/hello.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/hello.c b/usr.sbin/ospfd/hello.c
index 56b786a70bb..f1be89ee8e5 100644
--- a/usr.sbin/ospfd/hello.c
+++ b/usr.sbin/ospfd/hello.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hello.c,v 1.14 2007/10/11 12:19:31 claudio Exp $ */
+/* $OpenBSD: hello.c,v 1.15 2009/01/31 08:55:00 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -104,7 +104,7 @@ send_hello(struct iface *iface)
if (auth_gen(buf, iface))
goto fail;
- ret = send_packet(iface, buf->buf, buf->wpos, &dst);
+ ret = send_packet(iface, buf, &dst);
buf_free(buf);
return (ret);
fail: