summaryrefslogtreecommitdiff
path: root/proto/static
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-05-01 15:10:53 +0200
committerMaria Matejka <mq@ucw.cz>2023-05-06 10:50:31 +0200
commit7d8e54105713ee29c03c9aea108c3a6880836dcd (patch)
tree4bd9465ca912cba2f64df05c0bc06ba35f401a25 /proto/static
parentb21909c6ee9dee131a9177a003c6d97cfb6fe1e0 (diff)
Linpool state save and restore refactoring
Diffstat (limited to 'proto/static')
-rw-r--r--proto/static/static.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/proto/static/static.c b/proto/static/static.c
index 6bae827b..74603a93 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -494,12 +494,8 @@ static_start(struct proto *P)
proto_notify_state(P, PS_UP);
WALK_LIST(r, cf->routes)
- {
- struct lp_state lps;
- lp_save(tmp_linpool, &lps);
- static_add_rte(p, r);
- lp_restore(tmp_linpool, &lps);
- }
+ TMP_SAVED
+ static_add_rte(p, r);
return PS_UP;
}