diff options
| author | sri-mohan1 <sri.mohan@samsung.com> | 2024-07-16 15:23:52 +0530 | 
|---|---|---|
| committer | sri-mohan1 <sri.mohan@samsung.com> | 2024-07-16 15:30:41 +0530 | 
| commit | d9e51c6399a655acd408224f044acd62765bcefe (patch) | |
| tree | dc6e5fa0d730406560ea6ab75523bdf36b55e2e7 /bfdd/bfd.c | |
| parent | 74e720c99f80a79ab5dde8b04a1559319149a74b (diff) | |
bfdd: 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 'bfdd/bfd.c')
| -rw-r--r-- | bfdd/bfd.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bfdd/bfd.c b/bfdd/bfd.c index 3096f47d5c..b6b437a791 100644 --- a/bfdd/bfd.c +++ b/bfdd/bfd.c @@ -410,8 +410,8 @@ static uint32_t ptm_bfd_gen_ID(void)  	 * random session identification numbers.  	 */  	do { -		session_id = ((frr_weak_random() << 16) & 0xFFFF0000) -			     | (frr_weak_random() & 0x0000FFFF); +		session_id = CHECK_FLAG((frr_weak_random() << 16), 0xFFFF0000) | +			     CHECK_FLAG(frr_weak_random(), 0x0000FFFF);  	} while (session_id == 0 || bfd_id_lookup(session_id) != NULL);  	return session_id;  | 
