diff options
| author | sri-mohan1 <sri.mohan@samsung.com> | 2023-03-01 17:24:54 +0530 | 
|---|---|---|
| committer | sri-mohan1 <sri.mohan@samsung.com> | 2023-03-01 17:24:54 +0530 | 
| commit | 2073f9290859fefb47d37a98198e9b44bb6bd7f8 (patch) | |
| tree | acb53fdbdd31cdb7581d796f13e5786a7db52239 /ldpd/adjacency.c | |
| parent | 575f30cea015c0ba86d908b8f90f59eb390a6010 (diff) | |
ldpd: changes for code maintainability
these changes are for improving the code maintainability and readability
Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
Diffstat (limited to 'ldpd/adjacency.c')
| -rw-r--r-- | ldpd/adjacency.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ldpd/adjacency.c b/ldpd/adjacency.c index 8caa3c4e24..4172321774 100644 --- a/ldpd/adjacency.c +++ b/ldpd/adjacency.c @@ -181,7 +181,7 @@ static void adj_itimer(struct thread *thread)  	log_debug("%s: lsr-id %pI4", __func__, &adj->lsr_id);  	if (adj->source.type == HELLO_TARGETED) { -		if (!(adj->source.target->flags & F_TNBR_CONFIGURED) && +		if (!CHECK_FLAG(adj->source.target->flags, F_TNBR_CONFIGURED) &&  		    adj->source.target->pw_count == 0 &&  		    adj->source.target->rlfa_count == 0) {  			/* remove dynamic targeted neighbor */ @@ -256,7 +256,7 @@ tnbr_find(struct ldpd_conf *xconf, int af, union ldpd_addr *addr)  struct tnbr *  tnbr_check(struct ldpd_conf *xconf, struct tnbr *tnbr)  { -	if (!(tnbr->flags & (F_TNBR_CONFIGURED|F_TNBR_DYNAMIC)) && +	if (!CHECK_FLAG(tnbr->flags, (F_TNBR_CONFIGURED|F_TNBR_DYNAMIC)) &&  	    tnbr->pw_count == 0 && tnbr->rlfa_count == 0) {  		tnbr_del(xconf, tnbr);  		return (NULL);  | 
