*****************************************************************************/
#include <vlc/vlc.h>
-#include <string.h> /* strdup() */
-#include <stdlib.h>
#include <ctype.h>
#endif
/*****************************************************************************
- * strnlen:
+ * strnlen:
*****************************************************************************/
#if !defined( HAVE_STRNLEN )
size_t vlc_strnlen( const char *psz, size_t n )
{
const char *psz_end = memchr( psz, 0, n );
- return psz_end ? ( psz_end - psz ) : n;
+ return psz_end ? (size_t)( psz_end - psz ) : n;
}
#endif
if( !psz_big || !psz_little || !*psz_little ) return p_pos;
- while( *p_pos )
+ while( *p_pos )
{
if( toupper( *p_pos ) == toupper( *psz_little ) )
{