summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldpd/keepalive.c
diff options
context:
space:
mode:
authormichele <michele@openbsd.org>2010-02-20 21:28:39 +0000
committermichele <michele@openbsd.org>2010-02-20 21:28:39 +0000
commita6fc12d847f32bd6cff693ce9e94e8ceaaa84cfd (patch)
tree91408c4247b6da7e49977e750738e6a400cfd003 /usr.sbin/ldpd/keepalive.c
parentThe .Ud macro must not have arguments, or it kills the build with mandoc(1). (diff)
downloadwireguard-openbsd-a6fc12d847f32bd6cff693ce9e94e8ceaaa84cfd.tar.xz
wireguard-openbsd-a6fc12d847f32bd6cff693ce9e94e8ceaaa84cfd.zip
Make send_* functions return void (and not int) as they can just succeed
or fatal(). ok claudio@
Diffstat (limited to 'usr.sbin/ldpd/keepalive.c')
-rw-r--r--usr.sbin/ldpd/keepalive.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/ldpd/keepalive.c b/usr.sbin/ldpd/keepalive.c
index c29c45a4bf6..c816a030782 100644
--- a/usr.sbin/ldpd/keepalive.c
+++ b/usr.sbin/ldpd/keepalive.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: keepalive.c,v 1.3 2010/02/18 09:26:29 claudio Exp $ */
+/* $OpenBSD: keepalive.c,v 1.4 2010/02/20 21:28:39 michele Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -37,14 +37,14 @@
#include "log.h"
#include "ldpe.h"
-int
+void
send_keepalive(struct nbr *nbr)
{
struct buf *buf;
u_int16_t size;
if (nbr->iface->passive)
- return (0);
+ return;
if ((buf = buf_open(LDP_MAX_LEN)) == NULL)
fatal("send_keepalive");
@@ -59,8 +59,6 @@ send_keepalive(struct nbr *nbr)
bufferevent_write(nbr->bev, buf->buf, buf->wpos);
buf_free(buf);
-
- return (0);
}
int