diff options
author | 2004-01-27 22:18:28 +0000 | |
---|---|---|
committer | 2004-01-27 22:18:28 +0000 | |
commit | c3e14009b1a74e5ef1ec404cd8c8ea3afbc3f128 (patch) | |
tree | d78f1b9899428bb06a352b17d3223984784909c4 | |
parent | make rt_sendmsg's local nextop and prefix struct in_addr too and don't use (diff) | |
download | wireguard-openbsd-c3e14009b1a74e5ef1ec404cd8c8ea3afbc3f128.tar.xz wireguard-openbsd-c3e14009b1a74e5ef1ec404cd8c8ea3afbc3f128.zip |
log_ntoa is herewith condemned to death by claudio and yours truly
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 3 | ||||
-rw-r--r-- | usr.sbin/bgpd/log.c | 11 |
2 files changed, 2 insertions, 12 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 49c66f17cdd..94363d837bd 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.84 2004/01/27 21:56:21 henning Exp $ */ +/* $OpenBSD: bgpd.h,v 1.85 2004/01/27 22:18:28 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -293,7 +293,6 @@ void log_debug(const char *, ...); void fatal(const char *); void fatalx(const char *); void fatal_ensure(const char *, int, const char *); -const char *log_ntoa(in_addr_t); const char *log_addr(const struct bgpd_addr *); /* parse.y */ diff --git a/usr.sbin/bgpd/log.c b/usr.sbin/bgpd/log.c index 59ec9c8f03d..44ffacd1938 100644 --- a/usr.sbin/bgpd/log.c +++ b/usr.sbin/bgpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.25 2004/01/27 21:23:39 henning Exp $ */ +/* $OpenBSD: log.c,v 1.26 2004/01/27 22:18:29 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -374,15 +374,6 @@ log_conn_attempt(const struct peer *peer, struct in_addr remote) } const char * -log_ntoa(in_addr_t ip) -{ - struct in_addr ina; - - ina.s_addr = ip; - return (inet_ntoa(ina)); -} - -const char * log_addr(const struct bgpd_addr *addr) { static char buf[48]; |