[vlc-devel] commit: update: Use const char * for psz_destdir. (Pierre d'Herbemont )

git version control git at videolan.org
Sun Jun 15 23:19:24 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jun 15 23:07:33 2008 +0200| [312324cd44cf10c2b090e91eefe8242a62cbeb1b]

update: Use const char * for psz_destdir.

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

 include/vlc_update.h |    2 +-
 src/misc/update.c    |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/vlc_update.h b/include/vlc_update.h
index 11f5f4f..4bc7fd3 100644
--- a/include/vlc_update.h
+++ b/include/vlc_update.h
@@ -57,7 +57,7 @@ VLC_EXPORT( update_t *, __update_New, ( vlc_object_t * ) );
 VLC_EXPORT( void, update_Delete, ( update_t * ) );
 VLC_EXPORT( void, update_Check, ( update_t *, void (*callback)( void*, bool ), void * ) );
 VLC_EXPORT( bool, update_NeedUpgrade, ( update_t * ) );
-VLC_EXPORT( void, update_Download, ( update_t *, char* ) );
+VLC_EXPORT( void, update_Download, ( update_t *, const char* ) );
 VLC_EXPORT( update_release_t*, update_GetRelease, ( update_t * ) );
 
 /**
diff --git a/src/misc/update.c b/src/misc/update.c
index 5e555e2..646983e 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -1447,7 +1447,7 @@ void update_DownloadReal( update_download_thread_t *p_udt );
  * \param dir to store the download file
  * \return nothing
  */
-void update_Download( update_t *p_update, char *psz_destdir )
+void update_Download( update_t *p_update, const char *psz_destdir )
 {
     assert( p_update );
 
@@ -1690,7 +1690,7 @@ bool update_NeedUpgrade( update_t *p_update )
     return false;
 }
 
-void update_Download( update_t *p_update, char *psz_destdir )
+void update_Download( update_t *p_update, const char *psz_destdir )
 {
     (void)p_update; (void)psz_destdir;
 }




More information about the vlc-devel mailing list