diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-02-14 09:44:31 +0100 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-02-23 23:53:42 +0100 |
commit | 2eec67acbb00593e414549a7e5b35eb7dd776b1b (patch) | |
tree | c692391dddfa88d938a29ea238a9e1a95da879fc /src/libsystemd-network | |
parent | 4aab5d0cbd979b2cccb88534f118bceaa86466d8 (diff) |
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.
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/dhcp-identifier.c | 2 | ||||
-rw-r--r-- | src/libsystemd-network/dhcp-identifier.h | 1 | ||||
-rw-r--r-- | src/libsystemd-network/dhcp-network.c | 2 | ||||
-rw-r--r-- | src/libsystemd-network/dhcp-packet.c | 8 | ||||
-rw-r--r-- | src/libsystemd-network/lldp-network.c | 1 | ||||
-rw-r--r-- | src/libsystemd-network/network-internal.c | 1 | ||||
-rw-r--r-- | src/libsystemd-network/network-internal.h | 2 | ||||
-rw-r--r-- | src/libsystemd-network/sd-dhcp-client.c | 3 | ||||
-rw-r--r-- | src/libsystemd-network/sd-dhcp-lease.c | 7 | ||||
-rw-r--r-- | src/libsystemd-network/sd-dhcp-server.c | 1 | ||||
-rw-r--r-- | src/libsystemd-network/sd-lldp.c | 3 | ||||
-rw-r--r-- | src/libsystemd-network/sd-pppoe.c | 2 | ||||
-rw-r--r-- | src/libsystemd-network/test-dhcp-client.c | 4 | ||||
-rw-r--r-- | src/libsystemd-network/test-dhcp-option.c | 1 | ||||
-rw-r--r-- | src/libsystemd-network/test-dhcp-server.c | 2 | ||||
-rw-r--r-- | src/libsystemd-network/test-lldp.c | 5 | ||||
-rw-r--r-- | src/libsystemd-network/test-pppoe.c | 6 |
17 files changed, 0 insertions, 51 deletions
diff --git a/src/libsystemd-network/dhcp-identifier.c b/src/libsystemd-network/dhcp-identifier.c index 419a450436..f7a1492363 100644 --- a/src/libsystemd-network/dhcp-identifier.c +++ b/src/libsystemd-network/dhcp-identifier.c @@ -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" diff --git a/src/libsystemd-network/dhcp-identifier.h b/src/libsystemd-network/dhcp-identifier.h index 7f44d25499..643d4970d5 100644 --- a/src/libsystemd-network/dhcp-identifier.h +++ b/src/libsystemd-network/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" diff --git a/src/libsystemd-network/dhcp-network.c b/src/libsystemd-network/dhcp-network.c index 5f2d2cfbfd..7f10838de1 100644 --- a/src/libsystemd-network/dhcp-network.c +++ b/src/libsystemd-network/dhcp-network.c @@ -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" diff --git a/src/libsystemd-network/dhcp-packet.c b/src/libsystemd-network/dhcp-packet.c index 7581daeeeb..cd7f5095ca 100644 --- a/src/libsystemd-network/dhcp-packet.c +++ b/src/libsystemd-network/dhcp-packet.c @@ -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 diff --git a/src/libsystemd-network/lldp-network.c b/src/libsystemd-network/lldp-network.c index a2bc7d5518..664d2f7867 100644 --- a/src/libsystemd-network/lldp-network.c +++ b/src/libsystemd-network/lldp-network.c @@ -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 { diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c index b8e4e21716..d579755cc8 100644 --- a/src/libsystemd-network/network-internal.c +++ b/src/libsystemd-network/network-internal.c @@ -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" diff --git a/src/libsystemd-network/network-internal.h b/src/libsystemd-network/network-internal.h index e51717e919..06aba893ce 100644 --- a/src/libsystemd-network/network-internal.h +++ b/src/libsystemd-network/network-internal.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" diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c index 5f90617b9e..4224e0197c 100644 --- a/src/libsystemd-network/sd-dhcp-client.c +++ b/src/libsystemd-network/sd-dhcp-client.c @@ -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" diff --git a/src/libsystemd-network/sd-dhcp-lease.c b/src/libsystemd-network/sd-dhcp-lease.c index 34aa36c6e6..fa1fa112b1 100644 --- a/src/libsystemd-network/sd-dhcp-lease.c +++ b/src/libsystemd-network/sd-dhcp-lease.c @@ -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) { diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c index 3f89f344d7..2634a730d6 100644 --- a/src/libsystemd-network/sd-dhcp-server.c +++ b/src/libsystemd-network/sd-dhcp-server.c @@ -21,7 +21,6 @@ ***/ #include <sys/ioctl.h> -#include <netinet/if_ether.h> #include "siphash24.h" diff --git a/src/libsystemd-network/sd-lldp.c b/src/libsystemd-network/sd-lldp.c index 19ef2ccdbd..0821730330 100644 --- a/src/libsystemd-network/sd-lldp.c +++ b/src/libsystemd-network/sd-lldp.c @@ -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, diff --git a/src/libsystemd-network/sd-pppoe.c b/src/libsystemd-network/sd-pppoe.c index 4f49b799ec..67a2cc6e97 100644 --- a/src/libsystemd-network/sd-pppoe.c +++ b/src/libsystemd-network/sd-pppoe.c @@ -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 diff --git a/src/libsystemd-network/test-dhcp-client.c b/src/libsystemd-network/test-dhcp-client.c index 8e88641430..d341210887 100644 --- a/src/libsystemd-network/test-dhcp-client.c +++ b/src/libsystemd-network/test-dhcp-client.c @@ -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" diff --git a/src/libsystemd-network/test-dhcp-option.c b/src/libsystemd-network/test-dhcp-option.c index 46c8c27061..6062a37dab 100644 --- a/src/libsystemd-network/test-dhcp-option.c +++ b/src/libsystemd-network/test-dhcp-option.c @@ -3,7 +3,6 @@ #include <stdbool.h> #include <errno.h> #include <string.h> -#include <assert.h> #include "util.h" #include "macro.h" diff --git a/src/libsystemd-network/test-dhcp-server.c b/src/libsystemd-network/test-dhcp-server.c index 3e68f310f3..9f60ab761e 100644 --- a/src/libsystemd-network/test-dhcp-server.c +++ b/src/libsystemd-network/test-dhcp-server.c @@ -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" diff --git a/src/libsystemd-network/test-lldp.c b/src/libsystemd-network/test-lldp.c index ee74ebd418..06545aee59 100644 --- a/src/libsystemd-network/test-lldp.c +++ b/src/libsystemd-network/test-lldp.c @@ -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" diff --git a/src/libsystemd-network/test-pppoe.c b/src/libsystemd-network/test-pppoe.c index dff83eaf6e..40d04fdb21 100644 --- a/src/libsystemd-network/test-pppoe.c +++ b/src/libsystemd-network/test-pppoe.c @@ -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) { |