changeset 25400:fb8ad8ae4dfd

The function parameter 'preferred_language' should be const char *.
author ulion
date Mon, 17 Dec 2007 01:06:17 +0000
parents 45d3ecc4c7e0
children f3acd58a3eff
files subreader.c subreader.h
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/subreader.c	Mon Dec 17 00:11:33 2007 +0000
+++ b/subreader.c	Mon Dec 17 01:06:17 2007 +0000
@@ -1270,7 +1270,7 @@
 };
 
 #ifdef HAVE_ENCA
-const char* guess_buffer_cp(unsigned char* buffer, int buflen,  char *preferred_language, const char *fallback)
+const char* guess_buffer_cp(unsigned char* buffer, int buflen, const char *preferred_language, const char *fallback)
 {
     const char **languages;
     size_t langcnt;
@@ -1310,7 +1310,7 @@
 }
 
 #define MAX_GUESS_BUFFER_SIZE (256*1024)
-const char* guess_cp(stream_t *st, char *preferred_language, const char *fallback)
+const char* guess_cp(stream_t *st, const char *preferred_language, const char *fallback)
 {
     size_t buflen;
     unsigned char *buffer;
--- a/subreader.h	Mon Dec 17 00:11:33 2007 +0000
+++ b/subreader.h	Mon Dec 17 01:06:17 2007 +0000
@@ -74,8 +74,8 @@
 void subcp_open (struct stream_st *st); /* for demux_ogg.c */
 void subcp_close (void); /* for demux_ogg.c */
 #ifdef HAVE_ENCA
-const char* guess_buffer_cp(unsigned char* buffer, int buflen, char *preferred_language, const char *fallback);
-const char* guess_cp(struct stream_st *st, char *preferred_language, const char *fallback);
+const char* guess_buffer_cp(unsigned char* buffer, int buflen, const char *preferred_language, const char *fallback);
+const char* guess_cp(struct stream_st *st, const char *preferred_language, const char *fallback);
 #endif
 char ** sub_filenames(const char *path, char *fname);
 void list_sub_file(sub_data* subd);