[vlc-devel] commit: Fix compilation warnings. ( Rémi Duraffort )

git version control git at videolan.org
Tue Aug 19 23:48:18 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Aug 19 23:34:46 2008 +0200| [0b6f16ff3e32984e53d8b25e68b412fa98d6626c] | committer: Rémi Duraffort 

Fix compilation warnings.

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

 modules/misc/notify/msn.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/misc/notify/msn.c b/modules/misc/notify/msn.c
index 5b23e54..45553ff 100644
--- a/modules/misc/notify/msn.c
+++ b/modules/misc/notify/msn.c
@@ -52,7 +52,7 @@ static void Close   ( vlc_object_t * );
 
 static int ItemChange( vlc_object_t *, const char *,
                        vlc_value_t, vlc_value_t, void * );
-static int SendToMSN( char * psz_msg );
+static int SendToMSN( const char * psz_msg );
 
 #define MSN_MAX_LENGTH 256
 
@@ -134,6 +134,7 @@ static void Close( vlc_object_t *p_this )
 static int ItemChange( vlc_object_t *p_this, const char *psz_var,
                        vlc_value_t oldval, vlc_value_t newval, void *param )
 {
+    (void)psz_var;    (void)oldval;    (void)newval;
     intf_thread_t *p_intf = (intf_thread_t *)param;
     char psz_tmp[MSN_MAX_LENGTH];
     char *psz_title = NULL;
@@ -180,7 +181,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     free( psz_artist );
     free( psz_album );
 
-    SendToMSN( psz_tmp );
+    SendToMSN( (const char*)psz_tmp );
     vlc_object_release( p_input );
 
     return VLC_SUCCESS;
@@ -189,7 +190,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
 /*****************************************************************************
  * SendToMSN
  *****************************************************************************/
-static int SendToMSN( char *psz_msg )
+static int SendToMSN( const char *psz_msg )
 {
     COPYDATASTRUCT msndata;
     HWND msnui = NULL;




More information about the vlc-devel mailing list