mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Change list arguments to const where possible
Change struct dl_list pointer argument to const in list functions that do not manipulate the list: dl_list_len() and dl_list_empty(). Signed-off-by: Hai Shalom <haishalom@google.com>
This commit is contained in:
parent
fdf114641f
commit
2a7023ba6f
@ -46,12 +46,12 @@ static inline void dl_list_del(struct dl_list *item)
|
||||
item->prev = NULL;
|
||||
}
|
||||
|
||||
static inline int dl_list_empty(struct dl_list *list)
|
||||
static inline int dl_list_empty(const struct dl_list *list)
|
||||
{
|
||||
return list->next == list;
|
||||
}
|
||||
|
||||
static inline unsigned int dl_list_len(struct dl_list *list)
|
||||
static inline unsigned int dl_list_len(const struct dl_list *list)
|
||||
{
|
||||
struct dl_list *item;
|
||||
int count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user