[vlc-commits] [Git][videolan/vlc][master] vlc_list: add missing const qualifier
Rémi Denis-Courmont (@Courmisch)
gitlab at videolan.org
Fri Apr 22 20:45:24 UTC 2022
Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC
Commits:
98be6159 by Thomas Guillem at 2022-04-22T20:30:35+00:00
vlc_list: add missing const qualifier
Allow to use these 2 functions with const entries.
- - - - -
1 changed file:
- include/vlc_list.h
Changes:
=====================================
include/vlc_list.h
=====================================
@@ -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))
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/98be6159d3e0dc720147ec5c71c4fd5b45e9c023
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/98be6159d3e0dc720147ec5c71c4fd5b45e9c023
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list