From d619cb67e734be7f02b4df262e6d6c43af042642 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 2 Feb 2016 21:02:42 -0500 Subject: [PATCH 1/2] bgpd: Removed unused variable from 'struct attr_extra' The mp_nexthop_local_in variable is never used. Remove it from the code base. Signed-off-by: Donald Sharp --- bgpd/bgp_attr.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/bgpd/bgp_attr.h b/bgpd/bgp_attr.h index 789422f640..5a5492aad4 100644 --- a/bgpd/bgp_attr.h +++ b/bgpd/bgp_attr.h @@ -60,10 +60,8 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA struct attr_extra { /* Multi-Protocol Nexthop, AFI IPv6 */ -#ifdef HAVE_IPV6 struct in6_addr mp_nexthop_global; struct in6_addr mp_nexthop_local; -#endif /* HAVE_IPV6 */ /* Extended Communities attribute. */ struct ecommunity *ecommunity; @@ -75,7 +73,6 @@ struct attr_extra struct transit *transit; struct in_addr mp_nexthop_global_in; - struct in_addr mp_nexthop_local_in; /* Aggregator Router ID attribute */ struct in_addr aggregator_addr; From ebe2d9cac87f5f687cd764836a6b93e90adc2cff Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 2 Feb 2016 21:11:40 -0500 Subject: [PATCH 2/2] config: Remove unused library check configure.ac is looking for the setproctitle library, which while it might be useful, we never call setproctitle or any other function that the library might expose. Signed-off-by: Donald Sharp --- configure.ac | 9 --------- 1 file changed, 9 deletions(-) diff --git a/configure.ac b/configure.ac index e39cc71b10..578f5a2c0a 100755 --- a/configure.ac +++ b/configure.ac @@ -815,15 +815,6 @@ AC_CHECK_FUNCS([dup2 ftruncate getcwd gethostbyname getpagesize gettimeofday \ if_nametoindex if_indextoname getifaddrs \ uname fcntl]) -AC_CHECK_FUNCS(setproctitle, , - [AC_CHECK_LIB(util, setproctitle, - [LIBS="$LIBS -lutil" - AC_DEFINE(HAVE_SETPROCTITLE,, Have setproctitle) - ] - ) - ] -) - dnl ------------------------------------ dnl Determine routing get and set method dnl ------------------------------------