[vlc-commits] commit: Constify (fixes #1391) ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Tue Mar 9 22:49:55 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar 9 23:48:58 2010 +0200| [552367122ca16f4d5f5296beddc44bcec945348f] | committer: Rémi Denis-Courmont
Constify (fixes #1391)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=552367122ca16f4d5f5296beddc44bcec945348f
---
include/vlc_input.h | 2 +-
include/vlc_vlm.h | 3 ++-
modules/control/http/http.h | 2 +-
modules/control/http/macro.c | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/include/vlc_input.h b/include/vlc_input.h
index 9ef68e7..ac90b10 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -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 );
diff --git a/include/vlc_vlm.h b/include/vlc_vlm.h
index cb46dbc..dab4094 100644
--- a/include/vlc_vlm.h
+++ b/include/vlc_vlm.h
@@ -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;
diff --git a/modules/control/http/http.h b/modules/control/http/http.h
index d76bd2b..8b24aca 100644
--- a/modules/control/http/http.h
+++ b/modules/control/http/http.h
@@ -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 );
/**@}*/
diff --git a/modules/control/http/macro.c b/modules/control/http/macro.c
index bc96aca..5217089 100644
--- a/modules/control/http/macro.c
+++ b/modules/control/http/macro.c
@@ -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;
More information about the vlc-commits
mailing list