[MPlayer-cvslog] r32778 - trunk/sub/subreader.c

cboesch subversion at mplayerhq.hu
Mon Jan 10 23:58:11 CET 2011


Author: cboesch
Date: Mon Jan 10 23:58:10 2011
New Revision: 32778

Log:
Mark source strings const in some subtitles string processing functions.

Modified:
   trunk/sub/subreader.c

Modified: trunk/sub/subreader.c
==============================================================================
--- trunk/sub/subreader.c	Mon Jan 10 20:18:51 2011	(r32777)
+++ trunk/sub/subreader.c	Mon Jan 10 23:58:10 2011	(r32778)
@@ -1814,7 +1814,7 @@ char * strreplace( char * in,char * what
 #endif
 
 
-static void strcpy_trim(char *d, char *s)
+static void strcpy_trim(char *d, const char *s)
 {
     // skip leading whitespace
     while (*s && isspace(*s)) {
@@ -1837,7 +1837,7 @@ static void strcpy_trim(char *d, char *s
     *d = 0;
 }
 
-static void strcpy_strip_ext(char *d, char *s)
+static void strcpy_strip_ext(char *d, const char *s)
 {
     char *tmp = strrchr(s,'.');
     if (!tmp) {
@@ -1853,7 +1853,7 @@ static void strcpy_strip_ext(char *d, ch
     }
 }
 
-static void strcpy_get_ext(char *d, char *s)
+static void strcpy_get_ext(char *d, const char *s)
 {
     char *tmp = strrchr(s,'.');
     if (!tmp) {
@@ -1864,7 +1864,7 @@ static void strcpy_get_ext(char *d, char
    }
 }
 
-static int whiteonly(char *s)
+static int whiteonly(const char *s)
 {
     while (*s) {
 	if (!isspace(*s)) return 0;


More information about the MPlayer-cvslog mailing list