]> git.sesse.net Git - vlc/blobdiff - modules/codec/cmml/xurl.c
Removes trailing spaces. Removes tabs.
[vlc] / modules / codec / cmml / xurl.c
index 9404b60bb9ee95ec7edd6a171ec0757f5d73010d..5b288cea38fdad6a488e095978b3ec37f0ae18cc 100644 (file)
@@ -13,7 +13,7 @@
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@@ -81,7 +81,7 @@ char *XURL_Concat( char *psz_url, char *psz_append )
         {
             /* psz_append is a relative URL */
             char *psz_new_url;
-            
             /* strip off last path component */
             psz_new_url = XURL_GetHead( psz_url );
             psz_new_url = streallocat( psz_new_url, psz_append );
@@ -240,12 +240,12 @@ char *XURL_GetSchemeAndHostname( char *psz_url )
     return psz_scheme_and_hostname;
 }
 
-static 
+static
 char *XURL_FindFragment( char *psz_url )
 {
     char *pc_hash = NULL;
     char *pc_return_value = NULL;
-    
     pc_hash = strchr( psz_url, '#' );
     if( pc_hash != NULL )
     {
@@ -260,7 +260,7 @@ char *XURL_FindQuery( char *psz_url )
 {
     char *pc_question_mark = NULL;
     char *pc_return_value = NULL;
-    
     pc_question_mark = strchr( psz_url, '?' );
     if( pc_question_mark != NULL )
     {
@@ -310,14 +310,14 @@ XURL_Bool XURL_IsFileURL( char *psz_url )
 }
 
 #ifndef HAVE_STRDUP
-static 
+static
 char *xurl_strdup( const char *psz_string )
 {
     size_t i_length;
     char *psz_new_string;
 
     if( !psz_string ) return NULL;
-    
     i_length = strlen( psz_string ) + 1;
     psz_new_string = (char *) xurl_malloc( i_length );
     if( psz_new_string == NULL ) return NULL;
@@ -328,7 +328,7 @@ char *xurl_strdup( const char *psz_string )
 }
 #endif
 
-static 
+static
 char *XURL_FindPath( char *psz_url )
 {
     char *psz_return_value = NULL;
@@ -467,18 +467,18 @@ char *XURL_GetWithoutFragment( char *psz_url )
             psz_return_value = psz_without_fragment;
         }
     }
-    
     return psz_return_value;
 }
 
-static 
+static
 char *streallocat( char *psz_string, char *psz_to_append )
 {
     size_t i_new_string_length = strlen( psz_string ) +
         strlen( psz_to_append ) + 1;
 
     psz_string = (char *) realloc( psz_string, i_new_string_length );
-    
     return strcat( psz_string, psz_to_append );
 }