ipaddress: minor white space cleanup

Convert leading spaces to tabs, and put alias in one printf
This commit is contained in:
Stephen Hemminger 2013-03-14 13:47:49 -07:00
parent d947b2384e
commit 1124ffb721
1 changed files with 4 additions and 6 deletions

View File

@ -469,8 +469,7 @@ int print_linkinfo(const struct sockaddr_nl *who,
print_linktype(fp, tb[IFLA_LINKINFO]); print_linktype(fp, tb[IFLA_LINKINFO]);
if (do_link && tb[IFLA_IFALIAS]) { if (do_link && tb[IFLA_IFALIAS]) {
fprintf(fp, "%s", _SL_); fprintf(fp, "%s alias %s", _SL_,
fprintf(fp," alias %s",
rta_getattr_str(tb[IFLA_IFALIAS])); rta_getattr_str(tb[IFLA_IFALIAS]));
} }
@ -1425,4 +1424,3 @@ int do_ipaddr(int argc, char **argv)
fprintf(stderr, "Command \"%s\" is unknown, try \"ip addr help\".\n", *argv); fprintf(stderr, "Command \"%s\" is unknown, try \"ip addr help\".\n", *argv);
exit(-1); exit(-1);
} }