remove unused includes
This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <net/ethernet.h>
|
||||
|
||||
#include "sd-id128.h"
|
||||
#include "libudev.h"
|
||||
@@ -28,7 +27,6 @@
|
||||
#include "virt.h"
|
||||
#include "sparse-endian.h"
|
||||
#include "siphash24.h"
|
||||
#include "util.h"
|
||||
|
||||
#include "dhcp6-protocol.h"
|
||||
#include "dhcp-identifier.h"
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <net/ethernet.h>
|
||||
|
||||
#include "macro.h"
|
||||
#include "sparse-endian.h"
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
***/
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <string.h>
|
||||
#include <linux/if_packet.h>
|
||||
@@ -26,7 +25,6 @@
|
||||
#include <net/ethernet.h>
|
||||
#include <net/if_arp.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <linux/filter.h>
|
||||
|
||||
#include "socket-util.h"
|
||||
|
||||
@@ -18,22 +18,14 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <net/ethernet.h>
|
||||
#include <net/if_arp.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "list.h"
|
||||
|
||||
#include "dhcp-protocol.h"
|
||||
#include "dhcp-lease-internal.h"
|
||||
#include "dhcp-internal.h"
|
||||
#include "sd-dhcp-lease.h"
|
||||
#include "sd-dhcp-client.h"
|
||||
|
||||
#define DHCP_CLIENT_MIN_OPTIONS_SIZE 312
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include "lldp-tlv.h"
|
||||
#include "lldp-network.h"
|
||||
#include "lldp-internal.h"
|
||||
#include "sd-lldp.h"
|
||||
|
||||
int lldp_network_bind_raw_socket(int ifindex) {
|
||||
typedef struct LLDPFrame {
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
#include "strv.h"
|
||||
#include "siphash24.h"
|
||||
#include "libudev-private.h"
|
||||
#include "dhcp-lease-internal.h"
|
||||
#include "log.h"
|
||||
#include "utf8.h"
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <netinet/ether.h>
|
||||
#include <netinet/in.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "udev.h"
|
||||
|
||||
@@ -24,12 +24,9 @@
|
||||
#include <net/ethernet.h>
|
||||
#include <net/if_arp.h>
|
||||
#include <linux/if_infiniband.h>
|
||||
#include <netinet/ether.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "list.h"
|
||||
#include "refcnt.h"
|
||||
#include "async.h"
|
||||
|
||||
|
||||
@@ -22,22 +22,15 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <net/ethernet.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "list.h"
|
||||
#include "mkdir.h"
|
||||
#include "fileio.h"
|
||||
#include "unaligned.h"
|
||||
#include "in-addr-util.h"
|
||||
|
||||
#include "dhcp-protocol.h"
|
||||
#include "dhcp-internal.h"
|
||||
#include "dhcp-lease-internal.h"
|
||||
#include "sd-dhcp-lease.h"
|
||||
#include "sd-dhcp-client.h"
|
||||
#include "network-internal.h"
|
||||
|
||||
int sd_dhcp_lease_get_address(sd_dhcp_lease *lease, struct in_addr *addr) {
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
***/
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <netinet/if_ether.h>
|
||||
|
||||
#include "siphash24.h"
|
||||
|
||||
|
||||
@@ -24,16 +24,13 @@
|
||||
|
||||
#include "siphash24.h"
|
||||
#include "hashmap.h"
|
||||
#include "event-util.h"
|
||||
|
||||
#include "lldp-tlv.h"
|
||||
#include "lldp-port.h"
|
||||
#include "sd-lldp.h"
|
||||
#include "prioq.h"
|
||||
#include "strv.h"
|
||||
#include "lldp-internal.h"
|
||||
#include "lldp-util.h"
|
||||
#include "ether-addr-util.h"
|
||||
|
||||
typedef enum LLDPAgentRXState {
|
||||
LLDP_AGENT_RX_WAIT_PORT_OPERATIONAL = 4,
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
/* See RFC 2516 */
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/ppp_defs.h>
|
||||
#include <linux/ppp-ioctl.h>
|
||||
#include <net/if.h>
|
||||
#include <netinet/in.h>
|
||||
@@ -36,7 +35,6 @@
|
||||
#include "socket-util.h"
|
||||
#include "async.h"
|
||||
#include "refcnt.h"
|
||||
#include "unaligned.h"
|
||||
#include "utf8.h"
|
||||
|
||||
#define PPPOE_MAX_PACKET_SIZE 1484
|
||||
|
||||
@@ -19,16 +19,12 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "socket-util.h"
|
||||
#include "sd-event.h"
|
||||
#include "event-util.h"
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include <stdbool.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "macro.h"
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <netinet/if_ether.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "sd-event.h"
|
||||
|
||||
@@ -21,13 +21,8 @@
|
||||
***/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/socket.h>
|
||||
#include <linux/if.h>
|
||||
#include <linux/if_ether.h>
|
||||
#include <net/ethernet.h>
|
||||
#include <sys/types.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include "macro.h"
|
||||
|
||||
@@ -20,22 +20,16 @@
|
||||
***/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <linux/veth.h>
|
||||
#include <net/if.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "socket-util.h"
|
||||
#include "sd-event.h"
|
||||
#include "event-util.h"
|
||||
#include "sd-rtnl.h"
|
||||
#include "rtnl-util.h"
|
||||
#include "sd-pppoe.h"
|
||||
|
||||
static void pppoe_handler(sd_pppoe *ppp, int event, void *userdata) {
|
||||
|
||||
Reference in New Issue
Block a user