]> git.sesse.net Git - vlc/commitdiff
Fix compilation warnings.
authorRémi Duraffort <ivoire@videolan.org>
Tue, 19 Aug 2008 21:34:46 +0000 (23:34 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 19 Aug 2008 21:35:43 +0000 (23:35 +0200)
modules/misc/notify/msn.c

index 5b23e54cf6a49f42fcc94c84fae173399df5a40d..45553ff49b5534ee4ed202d695d6e86034ca9ca3 100644 (file)
@@ -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;