Whitespace and indentation cleanup
Need to go over whole source and scrub..
This commit is contained in:
parent
30b557929f
commit
4b726cb176
|
|
@ -234,7 +234,7 @@ static int parse_args(int argc, char **argv, int cmd, struct ip6_tnl_parm2 *p)
|
|||
if (strchr(*argv, '.'))
|
||||
p->i_key = p->o_key = get_addr32(*argv);
|
||||
else {
|
||||
if (get_unsigned(&uval, *argv, 0)<0) {
|
||||
if (get_unsigned(&uval, *argv, 0) < 0) {
|
||||
fprintf(stderr, "invalid value of \"key\"\n");
|
||||
exit(-1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -314,7 +314,8 @@ static void print_vfinfo(FILE *fp, struct rtattr *vfinfo)
|
|||
}
|
||||
|
||||
static void print_link_stats64(FILE *fp, const struct rtnl_link_stats64 *s,
|
||||
const struct rtattr *carrier_changes) {
|
||||
const struct rtattr *carrier_changes)
|
||||
{
|
||||
fprintf(fp, "%s", _SL_);
|
||||
fprintf(fp, " RX: bytes packets errors dropped overrun mcast %s%s",
|
||||
s->rx_compressed ? "compressed" : "", _SL_);
|
||||
|
|
@ -585,7 +586,7 @@ static unsigned int get_ifa_flags(struct ifaddrmsg *ifa,
|
|||
int print_addrinfo(const struct sockaddr_nl *who, struct nlmsghdr *n,
|
||||
void *arg)
|
||||
{
|
||||
FILE *fp = (FILE*)arg;
|
||||
FILE *fp = arg;
|
||||
struct ifaddrmsg *ifa = NLMSG_DATA(n);
|
||||
int len = n->nlmsg_len;
|
||||
int deprecated = 0;
|
||||
|
|
@ -606,7 +607,8 @@ int print_addrinfo(const struct sockaddr_nl *who, struct nlmsghdr *n,
|
|||
if (filter.flushb && n->nlmsg_type != RTM_NEWADDR)
|
||||
return 0;
|
||||
|
||||
parse_rtattr(rta_tb, IFA_MAX, IFA_RTA(ifa), n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa)));
|
||||
parse_rtattr(rta_tb, IFA_MAX, IFA_RTA(ifa),
|
||||
n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa)));
|
||||
|
||||
ifa_flags = get_ifa_flags(ifa, rta_tb[IFA_FLAGS]);
|
||||
|
||||
|
|
@ -1452,7 +1454,7 @@ static int ipaddr_modify(int cmd, int flags, int argc, char **argv)
|
|||
}
|
||||
brd = peer;
|
||||
if (brd.bitlen <= 30) {
|
||||
for (i=31; i>=brd.bitlen; i--) {
|
||||
for (i = 31; i >= brd.bitlen; i--) {
|
||||
if (brd_len == -1)
|
||||
brd.data[0] |= htonl(1<<(31-i));
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue