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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user