vlc_list: prevent name conflict
commit152963ca3e70dc603c3ddd15c0fda715f7cfaedd
authorRomain Vimont <rom1v@videolabs.io>
Wed, 16 Sep 2020 13:54:32 +0000 (16 15:54 +0200)
committerThomas Guillem <thomas@gllm.fr>
Fri, 18 Sep 2020 07:14:41 +0000 (18 09:14 +0200)
tree948da65c4329edbda5d36af49e0bd16db99b99f8
parent801dc62e81872a8402e451240d5b8a75273f0591
vlc_list: prevent name conflict

The macro vlc_list_foreach() declares an internal variable
vlc_list_it_XXX variable for looping, where XXX is the variable provided
by the user to receive the item.

If this name is "next", the resulting internal variable name is
"vlc_list_it_next", which conflicts with the function
vlc_list_it_next().

Add an _ to the internal variable name to prevent it.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
include/vlc_list.h