From ace6e29365b585df8eba49386d9463030bd32a5c Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Thu, 25 Dec 2003 23:21:37 +0000 Subject: nothing uses the special return value kroute_msg used to set for EEXIST any more, so zap the special treatment for EEXIST --- usr.sbin/bgpd/kroute.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c index 8298302f89b..7342ee67a45 100644 --- a/usr.sbin/bgpd/kroute.c +++ b/usr.sbin/bgpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.21 2003/12/25 23:15:58 henning Exp $ */ +/* $OpenBSD: kroute.c,v 1.22 2003/12/25 23:21:36 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer @@ -70,9 +70,9 @@ u_int32_t rtseq = 1; pid_t pid; #define F_BGPD_INSERTED 0x0001 -#define F_KERNEL 0x0002 +#define F_KERNEL 0x0002 #define F_CONNECTED 0x0004 -#define F_NEXTHOP 0x0008 +#define F_NEXTHOP 0x0008 int kroute_init(void) @@ -89,7 +89,6 @@ kroute_init(void) pid = getpid(); RB_INIT(&krt); - kroute_fetchtable(); return (s); @@ -136,8 +135,6 @@ retry: } else /* nexthop invalid */ return (-1); break; - case EEXIST: /* connected route */ - return (-2); default: logit(LOG_INFO, "kroute_msg: %s", strerror(errno)); return (-1); -- cgit v1.2.3