summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_prefix.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-06-22 23:17:02 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-06-22 23:17:02 +0000
commita5792356458a7ed9bb6a7d4aa578b74e9d704e84 (patch)
treeed995dba9221ec1a7eb602a73dea47596aa75f2f /usr.sbin/bgpd/rde_prefix.c
parente571f429990f72a4fbb0354747f839894d4c77c0 (diff)
Cleanup. jajaja henning@
Diffstat (limited to 'usr.sbin/bgpd/rde_prefix.c')
-rw-r--r--usr.sbin/bgpd/rde_prefix.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/usr.sbin/bgpd/rde_prefix.c b/usr.sbin/bgpd/rde_prefix.c
index d58245a7cc0..22622d61a99 100644
--- a/usr.sbin/bgpd/rde_prefix.c
+++ b/usr.sbin/bgpd/rde_prefix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_prefix.c,v 1.14 2004/06/22 20:28:58 claudio Exp $ */
+/* $OpenBSD: rde_prefix.c,v 1.15 2004/06/22 23:17:01 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -95,7 +95,6 @@ pt_shutdown(void)
int
pt_empty(struct pt_entry *pte)
{
- ENSURE(pte != NULL);
return LIST_EMPTY(&pte->prefix_h);
}
@@ -269,13 +268,6 @@ pt_prefix_cmp(const struct pt_entry *a, const struct pt_entry *b)
const struct pt_entry6 *a6, *b6;
int i;
- if (a == NULL)
- return (1);
- if (b == NULL)
- return (-1);
-
- if (a->af != b->af)
- log_debug("af non equal a %d b %d\n", a->af, b->af);
ENSURE(a->af == b->af);
switch (a->af) {
@@ -305,7 +297,6 @@ pt_prefix_cmp(const struct pt_entry *a, const struct pt_entry *b)
if (a6->prefixlen > b6->prefixlen)
return (1);
return (0);
-
default:
fatalx("pt_prefix_cmp: unknown af");
}