diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2016-10-13 13:06:10 -0300 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-10-18 08:51:24 -0400 |
| commit | 43e7c3b42165321d7407c0454ef757023ce30179 (patch) | |
| tree | e5d25465aeb44f549103beeee78bb2a1d649b011 /lib/json.c | |
| parent | 4e1cadf011e484ff865e0e54ce51adc32d1590e3 (diff) | |
lib/zebra: remove code duplication in redist_del_instance()
Change redist_check_instance() to return a pointer instead of returning 1
on success. This way this function can be reused in redist_del_instance()
instead of duplicating the same logic there.
Also, remove unnecessary call to redist_check_instance() in
zebra_redistribute_delete().
While here, remove unnecessary cast from void* in redist_add_instance().
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/json.c')
0 files changed, 0 insertions, 0 deletions
