]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd, isis, tools: style fixen
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 20 Apr 2020 23:14:13 +0000 (19:14 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 20 Apr 2020 23:15:35 +0000 (19:15 -0400)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_route.c
bgpd/rfapi/rfapi.c
isisd/isis_lsp.c
tools/cocci.h

index b67132a1e6a05c0eedf1baa45d7a18db99ffa6cb..86cf69919ace2508e8016419ac24b5238269a534 100644 (file)
@@ -12356,8 +12356,7 @@ DEFUN (show_ip_bgp_neighbor_received_prefix_filter,
                }
        }
 
-       snprintf(name, 
-                sizeof(name), "%s.%d.%d", peer->host, afi, safi);
+       snprintf(name, sizeof(name), "%s.%d.%d", peer->host, afi, safi);
        count = prefix_bgp_show_prefix_list(NULL, afi, name, uj);
        if (count) {
                if (!uj)
index 8643f53c3337a92e15bb08ffbfda53d120c6d467..d6b6a78f626f534df47e26161370446fee23f82b 100644 (file)
@@ -3506,8 +3506,7 @@ DEFUN (debug_rfapi_show_import,
                                                "\nLNI-based Ethernet Tables:\n");
                                        first_l2 = 0;
                                }
-                               snprintf(buf, sizeof(buf), "L2VPN LNI=%u",
-                                        lni);
+                               snprintf(buf, sizeof(buf), "L2VPN LNI=%u", lni);
                                rfapiShowImportTable(
                                        vty, buf, it->imported_vpn[AFI_L2VPN],
                                        1);
index e852db08ea45d0bd99c6f9a6796863d47e8b7c10..effd19ed7d81cf5d316c978c489b07c19982b64c 100644 (file)
@@ -611,11 +611,9 @@ void lspid_print(uint8_t *lsp_id, char *dest, char dynhost, char frag)
                dyn = NULL;
 
        if (dyn)
-               snprintf(id, 
-                        sizeof(id), "%.14s", dyn->hostname);
+               snprintf(id, sizeof(id), "%.14s", dyn->hostname);
        else if (!memcmp(isis->sysid, lsp_id, ISIS_SYS_ID_LEN) && dynhost)
-               snprintf(id, 
-                        sizeof(id), "%.14s", cmd_hostname_get());
+               snprintf(id, sizeof(id), "%.14s", cmd_hostname_get());
        else
                memcpy(id, sysid_print(lsp_id), 15);
        if (frag)
index 86dea58f682ad2450d063875bff06febb8a11a3a..8ca42b349f5d96ef5aa1a74f4c8b197fa0f5692b 100644 (file)
@@ -85,4 +85,3 @@
                for (safi = SAFI_UNICAST; safi < SAFI_MAX; safi++)
 
 #define FOREACH_SAFI(safi) for (safi = SAFI_UNICAST; safi < SAFI_MAX; safi++)
-