]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: remove superfluous includes
authorOla Olsson <ola1olsson@gmail.com>
Sun, 4 Oct 2015 21:08:39 +0000 (23:08 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Oct 2015 09:32:36 +0000 (11:32 +0200)
if.h only contains if_nametoindex and the reverse.
Lets remove the inclusion in the source files where
these functions are not called.

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
12 files changed:
coalesce.c
hwsim.c
info.c
interface.c
mesh.c
ocb.c
p2p.c
phy.c
reg.c
roc.c
vendor.c
wowlan.c

index 6cdc4694a5ead1bda6a7decf842327f4f7a3eb09..fabf44adc33933d6c1474b7329bb37974b029c5d 100644 (file)
@@ -1,4 +1,3 @@
-#include <net/if.h>
 #include <errno.h>
 #include <string.h>
 #include <stdio.h>
diff --git a/hwsim.c b/hwsim.c
index faa197b154569b86fb4740b2e00245eeb531ad6d..6f82207541a1ad1e1906b6338cb225439293a214 100644 (file)
--- a/hwsim.c
+++ b/hwsim.c
@@ -1,4 +1,3 @@
-#include <net/if.h>
 #include <errno.h>
 #include <string.h>
 
diff --git a/info.c b/info.c
index c23e37839519061030ee1443bed3d8bbc8658621..8e8739758632cf3137d442db57910cee29bda756 100644 (file)
--- a/info.c
+++ b/info.c
@@ -1,6 +1,5 @@
 #include <stdbool.h>
 #include <errno.h>
-#include <net/if.h>
 
 #include <netlink/genl/genl.h>
 #include <netlink/genl/family.h>
index 4f0821d3942f544aaddbb17024a7178441321204..87d86ccba6664fdd157d78108c5bf023901a4562 100644 (file)
@@ -1,4 +1,3 @@
-#include <net/if.h>
 #include <errno.h>
 #include <string.h>
 #include <stdbool.h>
diff --git a/mesh.c b/mesh.c
index 0090530569154482ecd5ec1006f3fd7a57804414..290b8c2d186bc02a0be70958e47d094ff5325f72 100644 (file)
--- a/mesh.c
+++ b/mesh.c
@@ -1,4 +1,3 @@
-#include <net/if.h>
 #include <errno.h>
 #include <string.h>
 
diff --git a/ocb.c b/ocb.c
index fc48ecfcf29b7713fa79b2b0dedc8393830470a2..d28da7fcd4d709e76731bf6608c50bd299ae68b5 100644 (file)
--- a/ocb.c
+++ b/ocb.c
@@ -1,4 +1,3 @@
-#include <net/if.h>
 #include <errno.h>
 #include <string.h>
 
diff --git a/p2p.c b/p2p.c
index bcfa01c5ad880835141e7c93e5c0e00b672424c0..2067916ef62b2226a020500f7fd993528a712716 100644 (file)
--- a/p2p.c
+++ b/p2p.c
@@ -1,4 +1,3 @@
-#include <net/if.h>
 #include <errno.h>
 #include <string.h>
 
diff --git a/phy.c b/phy.c
index 39b68c4a0de00f463e2a34959cb00a6e35249b45..6d4139ed7d7c5522cd68c40b33c0c17535b338ac 100644 (file)
--- a/phy.c
+++ b/phy.c
@@ -1,6 +1,5 @@
 #include <stdbool.h>
 #include <errno.h>
-#include <net/if.h>
 #include <strings.h>
 #include <sys/param.h>
 #include <sys/stat.h>
diff --git a/reg.c b/reg.c
index ee607a57d6017c8f38e7552f17fe3824468e58bc..1dca13a35d50294f2c0c57eea13d48ed780332cb 100644 (file)
--- a/reg.c
+++ b/reg.c
@@ -1,4 +1,3 @@
-#include <net/if.h>
 #include <errno.h>
 #include <string.h>
 #include <stdbool.h>
diff --git a/roc.c b/roc.c
index ef2bf166a3cb89cf2f8a0e13f2fcb78d6d1b7876..c6eda103c12acbd067da4a26e5c1128d3a88a9e6 100644 (file)
--- a/roc.c
+++ b/roc.c
@@ -1,4 +1,3 @@
-#include <net/if.h>
 #include <errno.h>
 #include <string.h>
 
index 5a693753f9498890309ab3376a167a2273c575de..d0b4f9ef4d5cc966b639b0141622fb9c91fa20f2 100644 (file)
--- a/vendor.c
+++ b/vendor.c
@@ -1,4 +1,3 @@
-#include <net/if.h>
 #include <errno.h>
 #include <string.h>
 
index d3b565c3958ac9dcb95a0426f8bb33ae3e675e06..e1d3750dd6db6988b97a69e6cec29f3e2e3d7a7c 100644 (file)
--- a/wowlan.c
+++ b/wowlan.c
@@ -1,4 +1,3 @@
-#include <net/if.h>
 #include <errno.h>
 #include <string.h>
 #include <stdio.h>