From: Renato Westphal Date: Tue, 11 Aug 2020 02:04:19 +0000 (-0300) Subject: isisd: remove unnecessary QOBJ usage X-Git-Tag: base_7.5~82^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8e4b740efbf0a0a00bb8ce706c8275a6bb09a5ec;p=matthieu%2Ffrr.git isisd: remove unnecessary QOBJ usage The global isis structure can't be created/destroyed using the CLI, so there's no need to define a QOBJ for it. Signed-off-by: Renato Westphal --- diff --git a/isisd/isisd.c b/isisd/isisd.c index 79060351f7..97a4688460 100644 --- a/isisd/isisd.c +++ b/isisd/isisd.c @@ -77,7 +77,6 @@ unsigned long debug_sr; struct isis *isis = NULL; -DEFINE_QOBJ_TYPE(isis) DEFINE_QOBJ_TYPE(isis_area) /* @@ -105,8 +104,6 @@ void isis_new(unsigned long process_id, vrf_id_t vrf_id) isis->init_circ_list = list_new(); isis->uptime = time(NULL); dyn_cache_init(); - - QOBJ_REG(isis, isis); } struct isis_area *isis_area_create(const char *area_tag) diff --git a/isisd/isisd.h b/isisd/isisd.h index 2b76d44c57..5a6c704b7c 100644 --- a/isisd/isisd.h +++ b/isisd/isisd.h @@ -77,12 +77,9 @@ struct isis { uint32_t circuit_ids_used[8]; /* 256 bits to track circuit ids 1 through 255 */ struct route_table *ext_info[REDIST_PROTOCOL_COUNT]; - - QOBJ_FIELDS }; extern struct isis *isis; -DECLARE_QOBJ_TYPE(isis_area) enum spf_tree_id { SPFTREE_IPV4 = 0,