]> git.sesse.net Git - vlc/blobdiff - src/extras/libc.c
Removes trailing spaces. Removes tabs.
[vlc] / src / extras / libc.c
index 152053c29dce272e70755227d25769775a474bfa..4be2dd27f5e3cf9e957af8548aae58b5bded9537 100644 (file)
@@ -111,13 +111,13 @@ char *vlc_strndup( const char *string, size_t n )
 #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
 
@@ -178,7 +178,7 @@ char * vlc_strcasestr( const char *psz_big, const char *psz_little )
 
     if( !psz_big || !psz_little || !*psz_little ) return p_pos;
  
-    while( *p_pos ) 
+    while( *p_pos )
     {
         if( toupper( *p_pos ) == toupper( *psz_little ) )
         {