mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 07:36:46 +00:00
watchfrr: dmn variable shadows previous declaration
There is no need to declar the same temp variable 2 times. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
75c87b7279
commit
9ca6d3db2b
@ -941,13 +941,10 @@ static void phase_check(void)
|
|||||||
if (!IS_UP(gs.special))
|
if (!IS_UP(gs.special))
|
||||||
break;
|
break;
|
||||||
zlog_info("Phased restart: %s is now up.", gs.special->name);
|
zlog_info("Phased restart: %s is now up.", gs.special->name);
|
||||||
{
|
for (dmn = gs.daemons; dmn; dmn = dmn->next) {
|
||||||
struct daemon *dmn;
|
if (dmn != gs.special)
|
||||||
for (dmn = gs.daemons; dmn; dmn = dmn->next) {
|
run_job(&dmn->restart, "start",
|
||||||
if (dmn != gs.special)
|
gs.start_command, 1, 0);
|
||||||
run_job(&dmn->restart, "start",
|
|
||||||
gs.start_command, 1, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
gs.phase = PHASE_NONE;
|
gs.phase = PHASE_NONE;
|
||||||
THREAD_OFF(gs.t_phase_hanging);
|
THREAD_OFF(gs.t_phase_hanging);
|
||||||
|
Loading…
Reference in New Issue
Block a user