[vlc-devel] commit: access_dvb: constify. ( Rémi Duraffort )

git version control git at videolan.org
Sat Oct 10 11:57:44 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Oct  2 20:35:32 2009 +0200| [4cb13ccc3af1336f3e0b570ce58cb714ffa51f77] | committer: Rémi Duraffort 

access_dvb: constify.

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

 modules/access/dvb/dvb.h     |    6 +++---
 modules/access/dvb/en50221.c |    2 +-
 modules/access/dvb/http.c    |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules/access/dvb/dvb.h b/modules/access/dvb/dvb.h
index e8b448e..ca22326 100644
--- a/modules/access/dvb/dvb.h
+++ b/modules/access/dvb/dvb.h
@@ -240,13 +240,13 @@ void en50221_SendMMIObject( access_t * p_access, int i_slot,
                                 en50221_mmi_object_t *p_object );
 void en50221_End( access_t * );
 
-char *dvbsi_to_utf8( char *psz_instring, size_t i_length );
+char *dvbsi_to_utf8( const char *psz_instring, size_t i_length );
 
 #ifdef ENABLE_HTTPD
 int HTTPOpen( access_t *p_access );
 void HTTPClose( access_t *p_access );
-char *HTTPExtractValue( char *psz_uri, const char *psz_name,
-                            char *psz_value, int i_value_max );
+char *HTTPExtractValue( const char *psz_uri, const char *psz_name,
+                        char *psz_value, int i_value_max );
 #endif
 /*****************************************************************************
  * Hacks
diff --git a/modules/access/dvb/en50221.c b/modules/access/dvb/en50221.c
index b37c656..ccd4353 100644
--- a/modules/access/dvb/en50221.c
+++ b/modules/access/dvb/en50221.c
@@ -2343,7 +2343,7 @@ static inline void *FixUTF8( char *p )
     return p;
 }
 
-char *dvbsi_to_utf8( char *psz_instring, size_t i_length )
+char *dvbsi_to_utf8( const char *psz_instring, size_t i_length )
 {
     const char *psz_encoding, *psz_stringstart;
     char *psz_outstring, *psz_tmp;
diff --git a/modules/access/dvb/http.c b/modules/access/dvb/http.c
index 70ea2e2..b9e9950 100644
--- a/modules/access/dvb/http.c
+++ b/modules/access/dvb/http.c
@@ -300,8 +300,8 @@ static int HttpCallback( httpd_file_sys_t *p_args,
 /****************************************************************************
  * HTTPExtractValue: Extract a GET variable from psz_request
  ****************************************************************************/
-char *HTTPExtractValue( char *psz_uri, const char *psz_name,
-                            char *psz_value, int i_value_max )
+char *HTTPExtractValue( const char *psz_uri, const char *psz_name,
+                        char *psz_value, int i_value_max )
 {
     char *p = psz_uri;
 




More information about the vlc-devel mailing list