mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 22:13:34 +00:00
lib: Convert access_list_empty to bool
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
98dc08cdda
commit
7351b95754
@ -437,12 +437,12 @@ static struct filter *filter_seq_check(struct access_list *access,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* If access_list has no filter then return 1. */
|
/* If access_list has no filter then return 1. */
|
||||||
static int access_list_empty(struct access_list *access)
|
static bool access_list_empty(struct access_list *access)
|
||||||
{
|
{
|
||||||
if (access->head == NULL && access->tail == NULL)
|
if (access->head == NULL && access->tail == NULL)
|
||||||
return 1;
|
return true;
|
||||||
else
|
else
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Delete filter from specified access_list. If there is hook
|
/* Delete filter from specified access_list. If there is hook
|
||||||
|
Loading…
Reference in New Issue
Block a user