]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
whitespace cleanups
authorJohannes Berg <johannes.berg@intel.com>
Wed, 7 Dec 2011 08:08:40 +0000 (09:08 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 7 Dec 2011 08:08:40 +0000 (09:08 +0100)
genl.c
iw.8
iw.c
phy.c
reg.c
scan.c

diff --git a/genl.c b/genl.c
index af0867687c5485a7683732bc3dc683cec5a9faec..7dc27f78c735668393f452cc5dbce970668f4d67 100644 (file)
--- a/genl.c
+++ b/genl.c
@@ -5,7 +5,7 @@
 #include <asm/errno.h>
 #include <netlink/genl/genl.h>
 #include <netlink/genl/family.h>
-#include <netlink/genl/ctrl.h>  
+#include <netlink/genl/ctrl.h>
 #include <netlink/msg.h>
 #include <netlink/attr.h>
 #include <linux/genetlink.h>
@@ -43,7 +43,7 @@ static int family_handler(struct nl_msg *msg, void *arg)
        nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0),
                  genlmsg_attrlen(gnlh, 0), NULL);
 
-        if (!tb[CTRL_ATTR_MCAST_GROUPS])
+       if (!tb[CTRL_ATTR_MCAST_GROUPS])
                return NL_SKIP;
 
        nla_for_each_nested(mcgrp, tb[CTRL_ATTR_MCAST_GROUPS], rem_mcgrp) {
@@ -61,7 +61,7 @@ static int family_handler(struct nl_msg *msg, void *arg)
                grp->id = nla_get_u32(tb_mcgrp[CTRL_ATTR_MCAST_GRP_ID]);
                break;
        }
-       
+
        return NL_SKIP;
 }
 
@@ -87,7 +87,7 @@ int nl_get_multicast_id(struct nl_sock *sock, const char *family, const char *gr
 
        ctrlid = genl_ctrl_resolve(sock, "nlctrl");
 
-        genlmsg_put(msg, 0, 0, ctrlid, 0,
+       genlmsg_put(msg, 0, 0, ctrlid, 0,
                    0, CTRL_CMD_GETFAMILY, 0);
 
        ret = -ENOBUFS;
diff --git a/iw.8 b/iw.8
index 866260faf1673b919c2c87a83e3251c8ff345f86..1915664370315bd80a40cbef69fdc0fd3315e3ee 100644 (file)
--- a/iw.8
+++ b/iw.8
@@ -7,7 +7,7 @@ iw \- show / manipulate wireless devices and their configuration
 .in +8
 .ti -8
 .B iw
-.RI [ " OPTIONS " ] " " { " 
+.RI [ " OPTIONS " ] " " { "
 .BR help " |"
 .RI ""OBJECT " " COMMAND " }"
 .sp
diff --git a/iw.c b/iw.c
index 37e710700af85865147b77c24d15fb9c0c2916c1..b5e668cb6f55e1f04c957eeb97b554240f0c87f7 100644 (file)
--- a/iw.c
+++ b/iw.c
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdbool.h>
-                     
+
 #include <netlink/genl/genl.h>
 #include <netlink/genl/family.h>
-#include <netlink/genl/ctrl.h>  
+#include <netlink/genl/ctrl.h>
 #include <netlink/msg.h>
 #include <netlink/attr.h>
 
diff --git a/phy.c b/phy.c
index d9090fdffeb2a556fb99ef0e9472a697dea6dd7e..839aead239eb3cb10069b1ebbaa9a184c4747075 100644 (file)
--- a/phy.c
+++ b/phy.c
@@ -176,7 +176,7 @@ static int handle_netns(struct nl80211_state *state,
                return 1;
 
        NLA_PUT_U32(msg, NL80211_ATTR_PID,
-                   strtoul(argv[0], &end, 10)); 
+                   strtoul(argv[0], &end, 10));
 
        if (*end != '\0')
                return 1;
diff --git a/reg.c b/reg.c
index c4ee1c4d34c962e508cf81b5b84bcf1df6c36ec3..06bbd4c4e80953251664cf4073de74f298106ef4 100644 (file)
--- a/reg.c
+++ b/reg.c
@@ -110,12 +110,12 @@ static int print_reg_handler(struct nl_msg *msg, void *arg)
        struct nlattr *nl_rule;
        int rem_rule;
        static struct nla_policy reg_rule_policy[NL80211_FREQUENCY_ATTR_MAX + 1] = {
-               [NL80211_ATTR_REG_RULE_FLAGS]           = { .type = NLA_U32 },
-               [NL80211_ATTR_FREQ_RANGE_START]         = { .type = NLA_U32 },
-               [NL80211_ATTR_FREQ_RANGE_END]           = { .type = NLA_U32 },
-               [NL80211_ATTR_FREQ_RANGE_MAX_BW]        = { .type = NLA_U32 },
-               [NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN]  = { .type = NLA_U32 },
-               [NL80211_ATTR_POWER_RULE_MAX_EIRP]      = { .type = NLA_U32 },
+               [NL80211_ATTR_REG_RULE_FLAGS]           = { .type = NLA_U32 },
+               [NL80211_ATTR_FREQ_RANGE_START]         = { .type = NLA_U32 },
+               [NL80211_ATTR_FREQ_RANGE_END]           = { .type = NLA_U32 },
+               [NL80211_ATTR_FREQ_RANGE_MAX_BW]        = { .type = NLA_U32 },
+               [NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN]  = { .type = NLA_U32 },
+               [NL80211_ATTR_POWER_RULE_MAX_EIRP]      = { .type = NLA_U32 },
        };
 
        nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0),
diff --git a/scan.c b/scan.c
index 688dd506c110a565fc3b4fcce13b1e4b11cc7490..110e1d39ade647e0d8695b77e5b7190b3a49d53e 100644 (file)
--- a/scan.c
+++ b/scan.c
@@ -1219,7 +1219,7 @@ static int print_bss_handler(struct nl_msg *msg, void *arg)
                int age = nla_get_u32(bss[NL80211_BSS_SEEN_MS_AGO]);
                printf("\tlast seen: %d ms ago\n", age);
        }
-       
+
        if (bss[NL80211_BSS_INFORMATION_ELEMENTS] && show--) {
                if (bss[NL80211_BSS_BEACON_IES])
                        printf("\tInformation elements from Probe Response "