summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-09 17:45:36 +0000
committerreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-09 17:45:36 +0000
commit4728357b58f053c28abf9bfb5e938f4dc7556790 (patch)
tree0e80eb644c6dbd42b3a1f937821f32a39e6b939d /libvo
parent2efd5b393de605e5e94123ce421e7c52e84a9faa (diff)
downloadmpv-4728357b58f053c28abf9bfb5e938f4dc7556790.tar.bz2
mpv-4728357b58f053c28abf9bfb5e938f4dc7556790.tar.xz
Marks several string parameters as const when they are not modified in the function, Patch by Stefan Huehner, stefan AT huehner-org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18985 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/font_load.c2
-rw-r--r--libvo/font_load.h4
-rw-r--r--libvo/font_load_ft.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/libvo/font_load.c b/libvo/font_load.c
index be445de86a..9f0204b5c7 100644
--- a/libvo/font_load.c
+++ b/libvo/font_load.c
@@ -49,7 +49,7 @@ err_out:
extern int sub_unicode;
-font_desc_t* read_font_desc(char* fname,float factor,int verbose){
+font_desc_t* read_font_desc(const char* fname,float factor,int verbose){
unsigned char sor[1024];
unsigned char sor2[1024];
font_desc_t *desc;
diff --git a/libvo/font_load.h b/libvo/font_load.h
index b125b9db7b..629dcd336c 100644
--- a/libvo/font_load.h
+++ b/libvo/font_load.h
@@ -80,7 +80,7 @@ extern int force_load_font;
int init_freetype(void);
int done_freetype(void);
-font_desc_t* read_font_desc_ft(char* fname,int movie_width, int movie_height);
+font_desc_t* read_font_desc_ft(const char* fname,int movie_width, int movie_height);
void free_font_desc(font_desc_t *desc);
void render_one_glyph(font_desc_t *desc, int c);
@@ -96,6 +96,6 @@ static int kerning(font_desc_t *desc, int prevc, int c) { return 0; }
#endif
raw_file* load_raw(char *name,int verbose);
-font_desc_t* read_font_desc(char* fname,float factor,int verbose);
+font_desc_t* read_font_desc(const char* fname,float factor,int verbose);
#endif /* ! __MPLAYER_FONT_LOAD_H */
diff --git a/libvo/font_load_ft.c b/libvo/font_load_ft.c
index c555b162c6..571919b473 100644
--- a/libvo/font_load_ft.c
+++ b/libvo/font_load_ft.c
@@ -905,7 +905,7 @@ void free_font_desc(font_desc_t *desc)
free(desc);
}
-static int load_sub_face(char *name, FT_Face *face)
+static int load_sub_face(const char *name, FT_Face *face)
{
int err = -1;
@@ -952,7 +952,7 @@ int kerning(font_desc_t *desc, int prevc, int c)
return f266ToInt(kern.x);
}
-font_desc_t* read_font_desc_ft(char *fname, int movie_width, int movie_height)
+font_desc_t* read_font_desc_ft(const char *fname, int movie_width, int movie_height)
{
font_desc_t *desc;