summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_rib.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-12-19 19:24:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-12-19 19:24:09 +0000
commitffe0841aa86a1ac8085a9c1079b7e4659509f97e (patch)
treeb0e80d46e20a789a4fd169c5b52839211f86a21d /usr.sbin/bgpd/rde_rib.c
parentf5a904ee7f7cbc7aaefd3da390a58dd0b0a9f28f (diff)
knf
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r--usr.sbin/bgpd/rde_rib.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c
index 8727bdbbac6..1185940b744 100644
--- a/usr.sbin/bgpd/rde_rib.c
+++ b/usr.sbin/bgpd/rde_rib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_rib.c,v 1.2 2003/12/19 01:15:47 deraadt Exp $ */
+/* $OpenBSD: rde_rib.c,v 1.3 2003/12/19 19:24:08 deraadt Exp $ */
/*
* Copyright (c) 2003 Claudio Jeker <cjeker@diehard.n-r-g.com>
@@ -372,7 +372,8 @@ path_init(u_long hashsize)
{
u_long hs, i;
- for (hs = 1; hs < hashsize; hs <<= 1) ;
+ for (hs = 1; hs < hashsize; hs <<= 1)
+ ;
pathtable.path_hashtbl = calloc(hs, sizeof(struct aspath_head));
if (pathtable.path_hashtbl == NULL)
fatal("path_init", errno);
@@ -892,7 +893,8 @@ nexthop_init(u_long hashsize)
{
u_long hs, i;
- for (hs = 1; hs < hashsize; hs <<= 1) ;
+ for (hs = 1; hs < hashsize; hs <<= 1)
+ ;
nexthoptable.nexthop_hashtbl = calloc(hs, sizeof(struct aspath_head));
if (nexthoptable.nexthop_hashtbl == NULL)
fatal("nextop_init", errno);