mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 14:33:09 +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))
|
||||
break;
|
||||
zlog_info("Phased restart: %s is now up.", gs.special->name);
|
||||
{
|
||||
struct daemon *dmn;
|
||||
for (dmn = gs.daemons; dmn; dmn = dmn->next) {
|
||||
if (dmn != gs.special)
|
||||
run_job(&dmn->restart, "start",
|
||||
gs.start_command, 1, 0);
|
||||
}
|
||||
for (dmn = gs.daemons; dmn; dmn = dmn->next) {
|
||||
if (dmn != gs.special)
|
||||
run_job(&dmn->restart, "start",
|
||||
gs.start_command, 1, 0);
|
||||
}
|
||||
gs.phase = PHASE_NONE;
|
||||
THREAD_OFF(gs.t_phase_hanging);
|
||||
|
Loading…
Reference in New Issue
Block a user