mirror of https://code.videolan.org/videolan/vlc
vlc_list: add missing const qualifier
Allow to use these 2 functions with const entries.
This commit is contained in:
parent
d2e1a77ec6
commit
98be6159d3
|
@ -316,7 +316,7 @@ static inline void *vlc_list_last_or_null(const struct vlc_list *head,
|
|||
}
|
||||
|
||||
static inline void *vlc_list_prev_or_null(const struct vlc_list *head,
|
||||
struct vlc_list *node,
|
||||
const struct vlc_list *node,
|
||||
size_t offset)
|
||||
{
|
||||
if (vlc_list_is_first(node, head))
|
||||
|
@ -325,7 +325,7 @@ static inline void *vlc_list_prev_or_null(const struct vlc_list *head,
|
|||
}
|
||||
|
||||
static inline void *vlc_list_next_or_null(const struct vlc_list *head,
|
||||
struct vlc_list *node,
|
||||
const struct vlc_list *node,
|
||||
size_t offset)
|
||||
{
|
||||
if (vlc_list_is_last(node, head))
|
||||
|
|
Loading…
Reference in New Issue