From 4ced1a2cb310d479915755cb5ced369554895f3a Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 20 Apr 2020 19:14:13 -0400 Subject: [PATCH] bgpd, isis, tools: style fixen Signed-off-by: Quentin Young --- bgpd/bgp_route.c | 3 +-- bgpd/rfapi/rfapi.c | 3 +-- isisd/isis_lsp.c | 6 ++---- tools/cocci.h | 1 - 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index b67132a1e6..86cf69919a 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -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) diff --git a/bgpd/rfapi/rfapi.c b/bgpd/rfapi/rfapi.c index 8643f53c33..d6b6a78f62 100644 --- a/bgpd/rfapi/rfapi.c +++ b/bgpd/rfapi/rfapi.c @@ -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); diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c index e852db08ea..effd19ed7d 100644 --- a/isisd/isis_lsp.c +++ b/isisd/isis_lsp.c @@ -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) diff --git a/tools/cocci.h b/tools/cocci.h index 86dea58f68..8ca42b349f 100644 --- a/tools/cocci.h +++ b/tools/cocci.h @@ -85,4 +85,3 @@ for (safi = SAFI_UNICAST; safi < SAFI_MAX; safi++) #define FOREACH_SAFI(safi) for (safi = SAFI_UNICAST; safi < SAFI_MAX; safi++) - -- 2.39.5