[vlc-devel] commit: second parameter of streallocat must be const. ( Rémi Duraffort )

git version control git at videolan.org
Wed Oct 1 21:57:09 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Oct  1 21:56:52 2008 +0200| [43095a4ddaee3f54a1ace862d74b2d0f994dd7d1] | committer: Rémi Duraffort 

second parameter of streallocat must be const.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=43095a4ddaee3f54a1ace862d74b2d0f994dd7d1
---

 modules/codec/cmml/xurl.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/codec/cmml/xurl.c b/modules/codec/cmml/xurl.c
index 73c6833..fabf40c 100644
--- a/modules/codec/cmml/xurl.c
+++ b/modules/codec/cmml/xurl.c
@@ -31,7 +31,7 @@
 
 #include "xurl.h"
 
-static char *streallocat( char *psz_string, char *psz_to_append );
+static char *streallocat( char *psz_string, const char *psz_to_append );
 
 #ifndef HAVE_STRDUP
 static char *xurl_strdup( const char *psz_string );
@@ -236,9 +236,9 @@ char *XURL_GetSchemeAndHostname( char *psz_url )
             strlen( psz_scheme ) + strlen( "://" ) +
             strlen( psz_hostname ) + 1);
     if( psz_scheme_and_hostname == NULL ) return NULL;
-    (void) strcpy( psz_scheme_and_hostname, psz_scheme );
-    (void) strcat( psz_scheme_and_hostname, "://" );
-    (void) strcat( psz_scheme_and_hostname, psz_hostname );
+    strcpy( psz_scheme_and_hostname, psz_scheme );
+    strcat( psz_scheme_and_hostname, "://" );
+    strcat( psz_scheme_and_hostname, psz_hostname );
 
     if (psz_scheme_and_hostname == NULL ) return NULL;
     return psz_scheme_and_hostname;
@@ -475,7 +475,7 @@ char *XURL_GetWithoutFragment( char *psz_url )
 }
 
 static
-char *streallocat( char *psz_string, char *psz_to_append )
+char *streallocat( char *psz_string, const char *psz_to_append )
 {
     size_t i_new_string_length = strlen( psz_string ) +
         strlen( psz_to_append ) + 1;




More information about the vlc-devel mailing list