]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: assorted fixes (unused variables, static)
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 4 Mar 2015 06:13:38 +0000 (07:13 +0100)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 7 Jun 2016 13:05:52 +0000 (09:05 -0400)
This just mops up a few warnings in isisd.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit f50ee93d12f8213a048a04fcf7d73e12662288e5)

isisd/isis_lsp.c

index ec3bc1d2bf1268156112488a7c2e150a7132bab5..730924861177226b7ee09d27f7b1a8220433dff4 100644 (file)
@@ -2742,7 +2742,7 @@ static int
 top_lsp_refresh (struct thread *thread)
 {
   struct isis_lsp *lsp;
-  u_int16_t rem_lifetime, refresh_time;
+  u_int16_t rem_lifetime;
 
   lsp = THREAD_ARG (thread);
   assert (lsp);
@@ -2767,7 +2767,7 @@ top_lsp_refresh (struct thread *thread)
   rem_lifetime = lsp_rem_lifetime (lsp->area, IS_LEVEL_1);
   lsp->lsp_header->rem_lifetime = htons (rem_lifetime);
 
-  refresh_time = lsp_refresh_time (lsp, rem_lifetime);
+  /* refresh_time = lsp_refresh_time (lsp, rem_lifetime); */
   THREAD_TIMER_ON (master, lsp->t_lsp_top_ref, top_lsp_refresh, lsp,
                   lsp->area->lsp_refresh[0]);