Remove trailing whitespace

This commit is contained in:
Stephen Hemminger 2014-02-17 10:55:31 -08:00
parent 730d3f61d9
commit 0612519e01
10 changed files with 14 additions and 14 deletions

View File

@ -125,7 +125,7 @@ static void print_link_flags(FILE *fp, unsigned flags, unsigned mdown)
}
static const char *oper_states[] = {
"UNKNOWN", "NOTPRESENT", "DOWN", "LOWERLAYERDOWN",
"UNKNOWN", "NOTPRESENT", "DOWN", "LOWERLAYERDOWN",
"TESTING", "DORMANT", "UP"
};

View File

@ -133,7 +133,7 @@ static int ipaddrlabel_modify(int cmd, int argc, char **argv)
inet_prefix prefix;
uint32_t label = 0xffffffffUL;
char *p = NULL;
char *l = NULL;
char *l = NULL;
memset(&req, 0, sizeof(req));
memset(&prefix, 0, sizeof(prefix));

View File

@ -198,7 +198,7 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv,
if (!dst_port_set) {
fprintf(stderr, "vxlan: destination port not specified\n"
"Will use Linux kernel default (non-standard value)\n");
fprintf(stderr,
fprintf(stderr,
"Use 'dstport 4789' to get the IANA assigned value\n"
"Use 'dstport 0' to get default and quiet this message\n");
}

View File

@ -286,7 +286,7 @@ static int netns_pids(int argc, char **argv)
}
closedir(dir);
return 0;
}
static int netns_identify(int argc, char **argv)
@ -359,7 +359,7 @@ static int netns_identify(int argc, char **argv)
}
closedir(dir);
return 0;
}
static int netns_delete(int argc, char **argv)

View File

@ -837,7 +837,7 @@ static int iproute_modify(int cmd, unsigned flags, int argc, char **argv)
}
if (get_time_rtt(&rtt, *argv, &raw))
invarg("\"rtt\" value is invalid\n", *argv);
rta_addattr32(mxrta, sizeof(mxbuf), RTAX_RTT,
rta_addattr32(mxrta, sizeof(mxbuf), RTAX_RTT,
(raw) ? rtt : rtt * 8);
} else if (strcmp(*argv, "rto_min") == 0) {
unsigned rto_min;

View File

@ -345,16 +345,16 @@ static void print_tunnel(struct ip_tunnel_parm *p)
if (p->iph.protocol == IPPROTO_IPV6 && (p->i_flags & SIT_ISATAP)) {
struct ip_tunnel_prl prl[16];
int i;
memset(prl, 0, sizeof(prl));
prl[0].datalen = sizeof(prl) - sizeof(prl[0]);
prl[0].addr = htonl(INADDR_ANY);
if (!tnl_prl_ioctl(SIOCGETPRL, p->name, prl))
for (i = 1; i < sizeof(prl) / sizeof(prl[0]); i++)
{
if (prl[i].addr != htonl(INADDR_ANY)) {
printf(" %s %s ",
printf(" %s %s ",
(prl[i].flags & PRL_DEFAULT) ? "pdr" : "pr",
format_host(AF_INET, 4, &prl[i].addr, s1, sizeof(s1)));
}

View File

@ -357,7 +357,7 @@ void xfrm_stats_print(struct xfrm_stats *s, FILE *fp, const char *prefix)
if (prefix)
fputs(prefix, fp);
fprintf(fp, " replay-window %u replay %u failed %u%s",
fprintf(fp, " replay-window %u replay %u failed %u%s",
s->replay_window, s->replay, s->integrity_failed, _SL_);
}
@ -408,7 +408,7 @@ void xfrm_lifetime_print(struct xfrm_lifetime_cfg *cfg,
if (prefix)
fputs(prefix, fp);
fprintf(fp, " expire add: soft %llu(sec), hard %llu(sec)%s",
fprintf(fp, " expire add: soft %llu(sec), hard %llu(sec)%s",
(unsigned long long) cfg->soft_add_expires_seconds,
(unsigned long long) cfg->hard_add_expires_seconds,
_SL_);

View File

@ -233,7 +233,7 @@ get_failed:
tos = uval;
} else
tos = 1;
} else
} else
usage();
argc--; argv++;
}

View File

@ -121,7 +121,7 @@ int tnl_del_ioctl(const char *basedev, const char *name, void *p)
return err;
}
static int tnl_gen_ioctl(int cmd, const char *name,
static int tnl_gen_ioctl(int cmd, const char *name,
void *p, int skiperr)
{
struct ifreq ifr;

View File

@ -1188,7 +1188,7 @@ static int print_sadinfo(struct nlmsghdr *n, void *arg)
fprintf(fp,"BAD SAD length returned\n");
return -1;
}
si = RTA_DATA(tb[XFRMA_SAD_HINFO]);
fprintf(fp," (buckets ");
fprintf(fp,"count %d", si->sadhcnt);