[vlc-commits] test/epg: fix sign warnings
Thomas Guillem
git at videolan.org
Thu Feb 23 14:46:14 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 23 14:46:03 2017 +0100| [b67f92d1b298e5d1cf755c45e6a99973192f5042] | committer: Thomas Guillem
test/epg: fix sign warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b67f92d1b298e5d1cf755c45e6a99973192f5042
---
test/src/misc/epg.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/src/misc/epg.c b/test/src/misc/epg.c
index 63fe760..a242a9d 100644
--- a/test/src/misc/epg.c
+++ b/test/src/misc/epg.c
@@ -41,17 +41,17 @@ static void assert_current( const vlc_epg_t *p_epg, const char *psz_name )
static void print_order( const vlc_epg_t *p_epg )
{
printf("order: ");
- for( int i=0; i<p_epg->i_event; i++ )
+ for( size_t i = 0; i < p_epg->i_event; i++ )
printf("%s ", p_epg->pp_event[i]->psz_name );
if( p_epg->p_current )
printf(" current %s", p_epg->p_current->psz_name );
printf("\n");
}
-static void assert_events( const vlc_epg_t *p_epg, const char *psz_names, int i_names )
+static void assert_events( const vlc_epg_t *p_epg, const char *psz_names, size_t i_names )
{
assert( p_epg->i_event == i_names );
- for( int i=0; i<p_epg->i_event; i++ )
+ for( size_t i = 0; i < p_epg->i_event; i++ )
{
assert( p_epg->pp_event[i]->psz_name &&
p_epg->pp_event[i]->psz_name[0] == psz_names[i] );
More information about the vlc-commits
mailing list