mirror of
https://github.com/videolan/vlc.git
synced 2024-12-04 23:35:52 +08:00
Constify (fixes #1391)
This commit is contained in:
parent
b445a6a530
commit
552367122c
@ -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 );
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 );
|
||||
|
||||
/**@}*/
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user