Whitespace and indentation cleanup
Need to go over whole source and scrub..
This commit is contained in:
parent
30b557929f
commit
4b726cb176
|
|
@ -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,
|
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, "%s", _SL_);
|
||||||
fprintf(fp, " RX: bytes packets errors dropped overrun mcast %s%s",
|
fprintf(fp, " RX: bytes packets errors dropped overrun mcast %s%s",
|
||||||
s->rx_compressed ? "compressed" : "", _SL_);
|
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,
|
int print_addrinfo(const struct sockaddr_nl *who, struct nlmsghdr *n,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
FILE *fp = (FILE*)arg;
|
FILE *fp = arg;
|
||||||
struct ifaddrmsg *ifa = NLMSG_DATA(n);
|
struct ifaddrmsg *ifa = NLMSG_DATA(n);
|
||||||
int len = n->nlmsg_len;
|
int len = n->nlmsg_len;
|
||||||
int deprecated = 0;
|
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)
|
if (filter.flushb && n->nlmsg_type != RTM_NEWADDR)
|
||||||
return 0;
|
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]);
|
ifa_flags = get_ifa_flags(ifa, rta_tb[IFA_FLAGS]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue