From 009bf3e7fd7d1e17d765aa17f31979538e741441 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Fri, 26 Dec 2003 14:26:03 +0000 Subject: remove he pathetic log_kroute() not used anywhere anyway --- usr.sbin/bgpd/bgpd.h | 4 +--- usr.sbin/bgpd/log.c | 14 +------------- 2 files changed, 2 insertions(+), 16 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index b878cf9f433..714081da817 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.31 2003/12/26 00:49:52 henning Exp $ */ +/* $OpenBSD: bgpd.h,v 1.32 2003/12/26 14:26:02 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer @@ -275,7 +275,6 @@ void msgbuf_init(struct msgbuf *); void msgbuf_clear(struct msgbuf *); int msgbuf_write(struct msgbuf *); - /* log.c */ void log_init(int); void logit(int, const char *, ...); @@ -289,7 +288,6 @@ void log_statechange(struct peer *, enum session_state, void log_notification(struct peer *, u_int8_t, u_int8_t, u_char *, u_int16_t); void log_conn_attempt(struct peer *, struct in_addr); -void log_kroute(int, const char *, struct kroute *); /* parse.y */ int cmdline_symset(char *); diff --git a/usr.sbin/bgpd/log.c b/usr.sbin/bgpd/log.c index 7957c87af21..43230c1d976 100644 --- a/usr.sbin/bgpd/log.c +++ b/usr.sbin/bgpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.5 2003/12/24 19:21:20 henning Exp $ */ +/* $OpenBSD: log.c,v 1.6 2003/12/26 14:26:02 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer @@ -308,15 +308,3 @@ log_conn_attempt(struct peer *peer, struct in_addr remote) free(p); } } - -void -log_kroute(int pri, const char *lmsg, struct kroute *kr) -{ - char *ip; - struct in_addr ina; - - ina.s_addr = kr->prefix; - - ip = inet_ntoa(ina); - logit(pri, "%s %s/%u", lmsg, ip, kr->prefixlen); -} -- cgit v1.2.3