Merge pull request #4414 from opensourcerouting/feature/fix-isis-warnings

isisd: Fix some minor warnings
This commit is contained in:
Mark Stapp 2019-05-29 11:38:42 -04:00 committed by GitHub
commit ca6af440b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -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);

View File

@ -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,