From: Johannes Berg Date: Wed, 7 Dec 2011 08:08:40 +0000 (+0100) Subject: whitespace cleanups X-Git-Tag: v3.3~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c551449a3271ca1db60856fc2af20e1f2d01cce8;p=thirdparty%2Fiw.git whitespace cleanups --- diff --git a/genl.c b/genl.c index af08676..7dc27f7 100644 --- a/genl.c +++ b/genl.c @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include #include @@ -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 866260f..1915664 100644 --- 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 37e7107..b5e668c 100644 --- a/iw.c +++ b/iw.c @@ -13,10 +13,10 @@ #include #include #include - + #include #include -#include +#include #include #include diff --git a/phy.c b/phy.c index d9090fd..839aead 100644 --- 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 c4ee1c4..06bbd4c 100644 --- 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 688dd50..110e1d3 100644 --- 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 "