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

git version control git at videolan.org
Wed Aug 20 20:10:49 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Aug 20 19:45:27 2008 +0200| [381f286d8a64daf75929f713f4d781feab9308d0] | committer: Rémi Duraffort 

Fix warnings.

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

 modules/access_output/bonjour.c |    3 ++-
 modules/access_output/http.c    |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/access_output/bonjour.c b/modules/access_output/bonjour.c
index 6b472b4..9d37308 100644
--- a/modules/access_output/bonjour.c
+++ b/modules/access_output/bonjour.c
@@ -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;
 }
diff --git a/modules/access_output/http.c b/modules/access_output/http.c
index fff220d..fbb2ab0 100644
--- a/modules/access_output/http.c
+++ b/modules/access_output/http.c
@@ -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;
 }




More information about the vlc-devel mailing list