Commit bfbf8a97 authored by Rémi Duraffort's avatar Rémi Duraffort

access_dvb: constify.

parent 4cb13ccc
...@@ -132,7 +132,7 @@ static __inline__ void en50221_MMIFree( en50221_mmi_object_t *p_object ) ...@@ -132,7 +132,7 @@ static __inline__ void en50221_MMIFree( en50221_mmi_object_t *p_object )
FREENULL( p_object->u.menu.psz_bottom ); FREENULL( p_object->u.menu.psz_bottom );
for ( i = 0; i < p_object->u.menu.i_choices; i++ ) for ( i = 0; i < p_object->u.menu.i_choices; i++ )
{ {
FREENULL( p_object->u.menu.ppsz_choices[i] ); free( p_object->u.menu.ppsz_choices[i] );
} }
FREENULL( p_object->u.menu.ppsz_choices ); FREENULL( p_object->u.menu.ppsz_choices );
break; break;
...@@ -245,7 +245,7 @@ char *dvbsi_to_utf8( const char *psz_instring, size_t i_length ); ...@@ -245,7 +245,7 @@ char *dvbsi_to_utf8( const char *psz_instring, size_t i_length );
#ifdef ENABLE_HTTPD #ifdef ENABLE_HTTPD
int HTTPOpen( access_t *p_access ); int HTTPOpen( access_t *p_access );
void HTTPClose( access_t *p_access ); void HTTPClose( access_t *p_access );
char *HTTPExtractValue( const char *psz_uri, const char *psz_name, const char *HTTPExtractValue( const char *psz_uri, const char *psz_name,
char *psz_value, int i_value_max ); char *psz_value, int i_value_max );
#endif #endif
/***************************************************************************** /*****************************************************************************
......
...@@ -300,10 +300,10 @@ static int HttpCallback( httpd_file_sys_t *p_args, ...@@ -300,10 +300,10 @@ static int HttpCallback( httpd_file_sys_t *p_args,
/**************************************************************************** /****************************************************************************
* HTTPExtractValue: Extract a GET variable from psz_request * HTTPExtractValue: Extract a GET variable from psz_request
****************************************************************************/ ****************************************************************************/
char *HTTPExtractValue( const char *psz_uri, const char *psz_name, const char *HTTPExtractValue( const char *psz_uri, const char *psz_name,
char *psz_value, int i_value_max ) char *psz_value, int i_value_max )
{ {
char *p = psz_uri; const char *p = psz_uri;
while( (p = strstr( p, psz_name )) ) while( (p = strstr( p, psz_name )) )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment