1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Some minor sl_allocz() cleanups

This commit is contained in:
Ondrej Zajicek (work)
2020-11-24 03:21:44 +01:00
parent db2d29073a
commit c9ae81656f
5 changed files with 6 additions and 11 deletions

View File

@@ -2108,9 +2108,7 @@ ospf_hash_get(struct top_graph *f, u32 domain, u32 lsa, u32 rtr, u32 type)
if (e)
return e;
e = sl_alloc(f->hash_slab);
bzero(e, sizeof(struct top_hash_entry));
e = sl_allocz(f->hash_slab);
e->color = OUTSPF;
e->dist = LSINFINITY;
e->lsa.type_raw = type;