mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 18:42:23 +00:00
Merge pull request #4414 from opensourcerouting/feature/fix-isis-warnings
isisd: Fix some minor warnings
This commit is contained in:
commit
ca6af440b9
@ -168,7 +168,7 @@ DEFUN (show_lsp_flooding,
|
||||
area->area_tag : "null");
|
||||
|
||||
if (lspid) {
|
||||
struct isis_lsp *lsp = lsp_for_arg(head, lspid);
|
||||
lsp = lsp_for_arg(head, lspid);
|
||||
|
||||
if (lsp)
|
||||
lsp_print_flooding(vty, lsp);
|
||||
|
@ -738,11 +738,7 @@ DEFUN (clear_isis_neighbor_arg,
|
||||
*/
|
||||
void print_debug(struct vty *vty, int flags, int onoff)
|
||||
{
|
||||
char onoffs[4];
|
||||
if (onoff)
|
||||
strcpy(onoffs, "on");
|
||||
else
|
||||
strcpy(onoffs, "off");
|
||||
const char *onoffs = onoff ? "on" : "off";
|
||||
|
||||
if (flags & DEBUG_ADJ_PACKETS)
|
||||
vty_out(vty,
|
||||
|
Loading…
Reference in New Issue
Block a user