]> git.sesse.net Git - vlc/commitdiff
Fix a bunch of gcc warnings
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 1 Oct 2006 17:12:02 +0000 (17:12 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 1 Oct 2006 17:12:02 +0000 (17:12 +0000)
17 files changed:
modules/access/cdda.c
modules/access/http.c
modules/access/smb.c
modules/access/v4l.c
modules/demux/playlist/asx.c
modules/demux/playlist/sgimb.c
modules/gui/ncurses.c
modules/misc/dummy/interface.c
modules/misc/gnutls.c
modules/misc/profile_parser.c
modules/misc/rtsp.c
modules/services_discovery/bonjour.c
modules/services_discovery/podcast.c
modules/services_discovery/sap.c
modules/services_discovery/shout.c
modules/video_filter/mosaic.c
modules/visualization/visual/visual.c

index a09ebd8960adf847df937dc17953a6b3bf5bd65c..f159bf5babca4b9c1b3be173b8509229dac38099 100644 (file)
@@ -31,6 +31,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#define _GNU_SOURCE
 #include <stdlib.h>
 
 #include <vlc/vlc.h>
index d8831292a6fe08696315f51c5a5bd4bdd7064d49..df634f1b9dab42b96b4df9734c6d748b79ea49f8 100644 (file)
@@ -26,7 +26,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-
+#define _GNU_SOURCE
 #include <vlc/vlc.h>
 
 #include <string.h>
index f9eca7de0943f4ffc956da5cb56ff59fcd824eb2..66d9f40a8739e414d04b6432dd9f8a454ce9676b 100644 (file)
@@ -24,6 +24,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#define _GNU_SOURCE
+
 #include <stdlib.h>
 
 #include <vlc/vlc.h>
index 6ea1bc4fe8c449f807d4486e619c20395818faab..429b2f7e5cb1f033dee6bd48e9e4dd3ed8b72a39 100644 (file)
@@ -27,6 +27,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
index 7e94b1c13e16d28e86545788607ba21313dda637..1c347b3654778dfd759b7fa1a5a3f7e92e3472a6 100644 (file)
@@ -27,6 +27,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#define _GNU_SOURCE
 #include <stdlib.h>                                      /* malloc(), free() */
 #include <ctype.h>                                              /* isspace() */
 
index c2ca33e0ca11f72bfbef6c5da7a5da00bf8a3a39..d074557d6b61ea19d882eb41a84bff2d3ab72ba2 100644 (file)
@@ -97,6 +97,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#define _GNU_SOURCE
 #include <stdlib.h>                                      /* malloc(), free() */
 
 #include <vlc/vlc.h>
index 0e7c541be293863616b4aa83e2b6def25bd3255f..05088b952c2dc52f895ceadfa2fb370788bb1ec9 100644 (file)
@@ -27,6 +27,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#define _GNU_SOURCE
 #include <stdlib.h>                                      /* malloc(), free() */
 #include <string.h>
 #include <errno.h>                                                 /* ENOMEM */
index 2366bd272ebc73a13c2eecd6960e55853b93b5a4..8314cf1ef0d7588a8bcc518dbccf272dc75d29b6 100644 (file)
 #include <vlc/vlc.h>
 #include <vlc/intf.h>
 
-/*****************************************************************************
- * Local prototypes.
- *****************************************************************************/
-static void Run   ( intf_thread_t * );
-
 /*****************************************************************************
  * Open: initialize dummy interface
  *****************************************************************************/
index deefaff102ff36221210ee0f81346183b3b409f2..f0887490f235bc4a0f2b8f68a2fadd904ce14589 100644 (file)
@@ -24,6 +24,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#define _GNU_SOURCE
 #include <stdlib.h>
 #include <errno.h>
 #include <time.h>
index c1d2265a46b46620b8180b408e7c1df3ec049eeb..8a548406ab442b4aa6a50f5e7a2eee67c4494ae4 100644 (file)
@@ -43,8 +43,8 @@ static int Open( vlc_object_t *p_this )
     xml_t *p_xml;
     xml_reader_t *p_reader;
     int i_ret;
-    char *psz_elname;
-   
+    char *psz_elname = NULL;
+
     /* Open the profile and get a XML reader from it */
     if( !p_stream )
     {
index a63d3dc3d91a1c06ec5a28cf737848c342006a12..0bd6638ae4f7991544d560fdfbe3cf4833589036 100644 (file)
@@ -25,6 +25,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#define _GNU_SOURCE
 #include <stdlib.h>
 
 #include <errno.h>
index 1f5e3bf83c5528154ce9f9318719b1f5e57ffc7a..d7647a741b89f4f9b1c0de1dd008d99f446e2738 100644 (file)
@@ -24,6 +24,7 @@
 /*****************************************************************************
  * Includes
  *****************************************************************************/
+#define _GNU_SOURCE
 #include <stdlib.h>                                      /* malloc(), free() */
 
 #include <vlc/vlc.h>
index bdb76a31b661c0b900e5b2c5f4b53f10a4e08d3d..68f13dd7c6d0091222046d44c63524bd3337f9d5 100644 (file)
@@ -24,6 +24,7 @@
 /*****************************************************************************
  * Includes
  *****************************************************************************/
+#define _GNU_SOURCE
 #include <stdlib.h>                                      /* malloc(), free() */
 
 #include <vlc/vlc.h>
index 7d9f90f51a0f4c0aa5bde749d79557e97a9a2410..f700926f621debe53cbd664c310a9751592e8d20 100644 (file)
@@ -24,6 +24,7 @@
 /*****************************************************************************
  * Includes
  *****************************************************************************/
+#define _GNU_SOURCE
 #include <stdlib.h>                                      /* malloc(), free() */
 
 #include <vlc/vlc.h>
index 129b7fc643023a47ed54a1058b372915771fae59..f886b22af26e7748caec9ce804d4486fa3f41ff1 100644 (file)
@@ -103,8 +103,6 @@ struct services_discovery_sys_t
  *****************************************************************************/
 
 /* Main functions */
-    static void Run    ( services_discovery_t *p_intf );
-
 static int OpenRadio( vlc_object_t *p_this )
 {
     return Open( p_this, RADIO );
index 4cfceaa9013012d5e65b9291203bf1923912e41f..a6f45a6b03e780191ff8cb52c15b88b223c53958 100644 (file)
@@ -25,6 +25,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#define _GNU_SOURCE
 #include <stdlib.h>                                      /* malloc(), free() */
 #include <string.h>
 #include <math.h>
index c82621ab15feb029a85a65c499e368ba759ab137..311296bcc62b9c5635a3181257950ae9cb40683a 100644 (file)
@@ -24,6 +24,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#define _GNU_SOURCE
 #include <stdlib.h>                                      /* malloc(), free() */
 #include <vlc/vlc.h>
 #include <vlc/vout.h>