]> git.sesse.net Git - vlc/commitdiff
Fix warnings.
authorRémi Duraffort <ivoire@videolan.org>
Wed, 20 Aug 2008 17:45:27 +0000 (19:45 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 20 Aug 2008 17:45:27 +0000 (19:45 +0200)
modules/access_output/bonjour.c
modules/access_output/http.c

index 6b472b4ccf4afad044ea0eb3761078b2ec241bd4..9d37308c0bff8f75483932fabb0ae60bbbda4caa 100644 (file)
@@ -81,6 +81,7 @@ static void entry_group_callback( AvahiEntryGroup *g,
                                   AvahiEntryGroupState state,
                                   void *userdata )
 {
+    (void)g;
     bonjour_t *p_sys = (bonjour_t *)userdata;
 
     if( state == AVAHI_ENTRY_GROUP_ESTABLISHED )
@@ -272,7 +273,7 @@ error:
     if( p_sys->psz_txt != NULL )
         avahi_free( p_sys->psz_txt );
 
-    free( (void *)p_sys );
+    free( p_sys );
 
     return NULL;
 }
index fff220d4a19b88b343063083dcf9bf48fc4cd0a9..fbb2ab0f25efa18be37063d43def070ef802d3c8 100644 (file)
@@ -324,7 +324,7 @@ static int Open( vlc_object_t *p_this )
                                        ? "_vlc-http._tcp" : "_vlc-https._tcp",
                                              psz_name, i_bind_port, psz_txt );
         free( psz_uri );
-        free( (void *)psz_txt );
+        free( psz_txt );
 
         if( p_sys->p_bonjour == NULL )
             msg_Err( p_access, "unable to start requested Bonjour announce" );
@@ -448,6 +448,7 @@ static ssize_t Write( sout_access_out_t *p_access, block_t *p_buffer )
  *****************************************************************************/
 static int Seek( sout_access_out_t *p_access, off_t i_pos )
 {
+    (void)i_pos;
     msg_Warn( p_access, "HTTP sout access cannot seek" );
     return VLC_EGENERIC;
 }