summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2011-05-02 06:34:30 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2011-05-02 06:34:30 +0000
commit04984ca16110c937213731124c804243cc4e6f8f (patch)
treec33917066c976eb74d218cf9f938a522a43fefcd /usr.sbin/ospf6d
parente01fa25d746c20a545b7d8757352ee0761d39388 (diff)
Don't include sys/param.h and reformat some lines.
Diffstat (limited to 'usr.sbin/ospf6d')
-rw-r--r--usr.sbin/ospf6d/rde.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/usr.sbin/ospf6d/rde.c b/usr.sbin/ospf6d/rde.c
index b6e7da4cd81..30bc2cf13b2 100644
--- a/usr.sbin/ospf6d/rde.c
+++ b/usr.sbin/ospf6d/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.50 2010/08/22 20:55:10 bluhm Exp $ */
+/* $OpenBSD: rde.c,v 1.51 2011/05/02 06:34:29 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -21,7 +21,6 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/queue.h>
-#include <sys/param.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <err.h>
@@ -375,8 +374,8 @@ rde_dispatch_imsg(int fd, short event, void *bula)
req_hdr.type, req_hdr.ls_id,
req_hdr.adv_rtr)) == NULL) {
imsg_compose_event(iev_ospfe,
- IMSG_LS_BADREQ,
- imsg.hdr.peerid, 0, -1, NULL, 0);
+ IMSG_LS_BADREQ, imsg.hdr.peerid,
+ 0, -1, NULL, 0);
continue;
}
imsg_compose_event(iev_ospfe, IMSG_LS_UPD,
@@ -405,7 +404,7 @@ rde_dispatch_imsg(int fd, short event, void *bula)
}
v = lsa_find(nbr->iface, lsa->hdr.type, lsa->hdr.ls_id,
- lsa->hdr.adv_rtr);
+ lsa->hdr.adv_rtr);
if (v == NULL)
db_hdr = NULL;
else
@@ -448,9 +447,8 @@ rde_dispatch_imsg(int fd, short event, void *bula)
/* reflood self originated LSA */
if (self && v)
imsg_compose_event(iev_ospfe,
- IMSG_LS_FLOOD,
- v->peerid, 0, -1, v->lsa,
- ntohs(v->lsa->hdr.len));
+ IMSG_LS_FLOOD, v->peerid, 0, -1,
+ v->lsa, ntohs(v->lsa->hdr.len));
/* new LSA was not added so free it */
if (self)
free(lsa);
@@ -465,8 +463,8 @@ rde_dispatch_imsg(int fd, short event, void *bula)
*/
if (rde_req_list_exists(nbr, &lsa->hdr)) {
imsg_compose_event(iev_ospfe,
- IMSG_LS_BADREQ,
- imsg.hdr.peerid, 0, -1, NULL, 0);
+ IMSG_LS_BADREQ, imsg.hdr.peerid,
+ 0, -1, NULL, 0);
free(lsa);
break;
}