Constify (fixes #1391)

This commit is contained in:
Rémi Denis-Courmont 2010-03-09 23:48:58 +02:00
parent b445a6a530
commit 552367122c
4 changed files with 5 additions and 4 deletions

View File

@ -103,7 +103,7 @@ static inline void vlc_seekpoint_Delete( seekpoint_t *point )
free( point );
}
static inline seekpoint_t *vlc_seekpoint_Duplicate( seekpoint_t *src )
static inline seekpoint_t *vlc_seekpoint_Duplicate( const seekpoint_t *src )
{
seekpoint_t *point = vlc_seekpoint_New();
if( src->psz_name ) point->psz_name = strdup( src->psz_name );

View File

@ -220,7 +220,8 @@ static inline void vlm_media_Init( vlm_media_t *p_media )
* \param p_dst vlm_media_t instance to copy to
* \param p_src vlm_media_t instance to copy from
*/
static inline void vlm_media_Copy( vlm_media_t *p_dst, vlm_media_t *p_src )
static inline void vlm_media_Copy( vlm_media_t *restrict p_dst,
const vlm_media_t *restrict p_src )
{
int i;

View File

@ -282,7 +282,7 @@ void Execute( httpd_file_sys_t *p_args,
char *p_request, int i_request,
char **pp_data, int *pi_data,
char **pp_dst,
char *_src, char *_end );
const char *_src, const char *_end );
/**@}*/

View File

@ -870,7 +870,7 @@ void Execute( httpd_file_sys_t *p_args,
char *p_request, int i_request,
char **pp_data, int *pi_data,
char **pp_dst,
char *_src, char *_end )
const char *_src, const char *_end )
{
intf_thread_t *p_intf = p_args->p_intf;