Commit 47240a15 authored by Michael Ploujnikov's avatar Michael Ploujnikov Committed by Rafaël Carré

fixed misc/stats.c:399: warning: comparison between signed and unsigned in...

fixed misc/stats.c:399: warning: comparison between signed and unsigned in function '__stats_TimerClean'

Based on usage of i_id, other stats_* functions and my opinion i_id should be unsigned int instead of int, but I might be missing the bigger picture related to changing public APIs. Please, let me know how to correctly deal with such warnings.
parent c573b4d0
......@@ -377,6 +377,6 @@ VLC_EXPORT( void,__stats_TimersDumpAll, (vlc_object_t*) );
VLC_EXPORT( void, __stats_TimersCleanAll, (vlc_object_t * ) );
#define stats_TimerClean(a,b) __stats_TimerClean( VLC_OBJECT(a), b )
VLC_EXPORT( void, __stats_TimerClean, (vlc_object_t *, int ) );
VLC_EXPORT( void, __stats_TimerClean, (vlc_object_t *, unsigned int ) );
#endif
......@@ -389,7 +389,7 @@ void __stats_TimersDumpAll( vlc_object_t *p_obj )
vlc_mutex_unlock( &p_obj->p_libvlc->timer_lock );
}
void __stats_TimerClean( vlc_object_t *p_obj, int i_id )
void __stats_TimerClean( vlc_object_t *p_obj, unsigned int i_id )
{
int i;
vlc_mutex_lock( &p_obj->p_libvlc->timer_lock );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment