]> git.ozlabs.org Git - ppp.git/commitdiff
pppoe-discovery: Remove duplicate and unused includes
authorPali Rohár <pali@kernel.org>
Tue, 21 Dec 2021 17:10:27 +0000 (18:10 +0100)
committerPali Rohár <pali@kernel.org>
Tue, 21 Dec 2021 17:10:27 +0000 (18:10 +0100)
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 <pali@kernel.org>
pppd/plugins/pppoe/pppoe-discovery.c

index e93d7812709afa847573caa795d5cbf96fe0e266..10f51dc975dbd9df1a851ca056f586770e09aa8d 100644 (file)
 
 #include "pppoe.h"
 
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#ifdef HAVE_NETPACKET_PACKET_H
-#include <netpacket/packet.h>
-#elif defined(HAVE_LINUX_IF_PACKET_H)
-#include <linux/if_packet.h>
-#endif
-
-#ifdef HAVE_ASM_TYPES_H
-#include <asm/types.h>
-#endif
-
-#ifdef HAVE_SYS_IOCTL_H
-#include <sys/ioctl.h>
-#endif
-
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-
-#ifdef HAVE_NET_IF_ARP_H
-#include <net/if_arp.h>
-#endif
-
 int debug;
 int got_sigterm;
 int pppoe_verbose;