summaryrefslogtreecommitdiff
path: root/lib/json.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2016-10-13 13:06:10 -0300
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-10-18 08:51:24 -0400
commit43e7c3b42165321d7407c0454ef757023ce30179 (patch)
treee5d25465aeb44f549103beeee78bb2a1d649b011 /lib/json.c
parent4e1cadf011e484ff865e0e54ce51adc32d1590e3 (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