diff sub/subreader.c @ 32691:98ddd06f0e9b

Mark source strings const in some subtitles string processing functions.
author cboesch
date Mon, 10 Jan 2011 22:58:10 +0000
parents 58cd752c58d8
children 7a79424a81ac
line wrap: on
line diff
--- a/sub/subreader.c	Mon Jan 10 19:18:51 2011 +0000
+++ b/sub/subreader.c	Mon Jan 10 22:58:10 2011 +0000
@@ -1814,7 +1814,7 @@
 #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 @@
     *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_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 int whiteonly(char *s)
+static int whiteonly(const char *s)
 {
     while (*s) {
 	if (!isspace(*s)) return 0;