From: Pali Rohár Date: Tue, 21 Dec 2021 17:10:27 +0000 (+0100) Subject: pppoe-discovery: Remove duplicate and unused includes X-Git-Tag: ppp-2.5.0~46^2 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=3492e78b33c8ef96ec4b4e6e2766cd700fd205e7;hp=c2186b5bccdb4b8a38ae7956f1557e39ca4a4d9d;p=ppp.git pppoe-discovery: Remove duplicate and unused includes Some of specified include header files in pppoe-discovery.c are duplicate and some of them are unused. Remove all these include lines which are not needed. Signed-off-by: Pali Rohár --- diff --git a/pppd/plugins/pppoe/pppoe-discovery.c b/pppd/plugins/pppoe/pppoe-discovery.c index e93d781..10f51dc 100644 --- a/pppd/plugins/pppoe/pppoe-discovery.c +++ b/pppd/plugins/pppoe/pppoe-discovery.c @@ -24,32 +24,6 @@ #include "pppoe.h" -#ifdef HAVE_UNISTD_H -#include -#endif - -#ifdef HAVE_NETPACKET_PACKET_H -#include -#elif defined(HAVE_LINUX_IF_PACKET_H) -#include -#endif - -#ifdef HAVE_ASM_TYPES_H -#include -#endif - -#ifdef HAVE_SYS_IOCTL_H -#include -#endif - -#include -#include -#include - -#ifdef HAVE_NET_IF_ARP_H -#include -#endif - int debug; int got_sigterm; int pppoe_verbose;