]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
bridge: remove trailing whitespace
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 30 Oct 2012 00:48:55 +0000 (17:48 -0700)
committerStephen Hemminger <shemminger@vyatta.com>
Tue, 30 Oct 2012 00:48:55 +0000 (17:48 -0700)
bridge/fdb.c
bridge/link.c
bridge/monitor.c

index 6041acc3089d92e0b20d34dfdc3b269ba6f071d5..4ca4861a024d0b689f1850f570047a1766a0e2c9 100644 (file)
@@ -94,7 +94,7 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
                                    ll_index_to_type(r->ndm_ifindex),
                                    b1, sizeof(b1)));
        }
-       
+
        if (!filter_index && r->ndm_ifindex)
                fprintf(fp, "dev %s ", ll_index_to_name(r->ndm_ifindex));
 
@@ -106,7 +106,7 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
                                    RTA_DATA(tb[NDA_DST]),
                                    abuf, sizeof(abuf)));
        }
-               
+
        if (show_stats && tb[NDA_CACHEINFO]) {
                struct nda_cacheinfo *ci = RTA_DATA(tb[NDA_CACHEINFO]);
                int hz = get_user_hz();
@@ -194,7 +194,7 @@ static int fdb_modify(int cmd, int flags, int argc, char **argv)
                        req.ndm.ndm_flags |= NTF_SELF;
                } else if (matches(*argv, "master") == 0) {
                        req.ndm.ndm_flags |= NTF_MASTER;
-               } else if (matches(*argv, "local") == 0|| 
+               } else if (matches(*argv, "local") == 0||
                           matches(*argv, "permanent") == 0) {
                        req.ndm.ndm_state |= NUD_PERMANENT;
                } else if (matches(*argv, "temp") == 0) {
index 1b9541d5ce410642d7dcdcc69a4bbbc8063b50ab..08fa366a6efe0e1aa8d3734c63b441ce0195ae1b 100644 (file)
@@ -57,7 +57,7 @@ static void print_link_flags(FILE *fp, unsigned flags)
 }
 
 static const char *oper_states[] = {
-       "UNKNOWN", "NOTPRESENT", "DOWN", "LOWERLAYERDOWN", 
+       "UNKNOWN", "NOTPRESENT", "DOWN", "LOWERLAYERDOWN",
        "TESTING", "DORMANT",    "UP"
 };
 
@@ -100,17 +100,17 @@ int print_linkinfo(const struct sockaddr_nl *who,
        fprintf(fp, "%d: %s ", ifi->ifi_index,
                tb[IFLA_IFNAME] ? (char*)RTA_DATA(tb[IFLA_IFNAME]) : "<nil>");
 
-       if (tb[IFLA_OPERSTATE]) 
+       if (tb[IFLA_OPERSTATE])
                print_operstate(fp, *(__u8 *)RTA_DATA(tb[IFLA_OPERSTATE]));
-       
+
        if (tb[IFLA_LINK]) {
                SPRINT_BUF(b1);
                int iflink = *(int*)RTA_DATA(tb[IFLA_LINK]);
-               
+
                if (iflink == 0)
                        fprintf(fp, "@NONE: ");
                else {
-                       fprintf(fp, "@%s: ", 
+                       fprintf(fp, "@%s: ",
                                if_indextoname(iflink, b1));
                }
        } else {
@@ -123,7 +123,7 @@ int print_linkinfo(const struct sockaddr_nl *who,
                fprintf(fp, "mtu %u ", *(int*)RTA_DATA(tb[IFLA_MTU]));
 
        if (tb[IFLA_MASTER]) {
-               fprintf(fp, "master %s ", 
+               fprintf(fp, "master %s ",
                        if_indextoname(*(int*)RTA_DATA(tb[IFLA_MASTER]), b1));
        }
 
index 3790a846d23bccd7890ef5e5dc196253771f1299..2f6065529b91adf8e68eb21e299869076a20a371 100644 (file)
@@ -74,7 +74,7 @@ int accept_msg(const struct sockaddr_nl *who,
        default:
                return 0;
        }
-       
+
 
 }