]> git.sesse.net Git - vlc/blobdiff - src/network/udp.c
close the logger in tests
[vlc] / src / network / udp.c
index c6e71ab55f9d5f32fdd60279879763d6257ca0c9..3dc51c719638109eaeb1b42dcaa97e3c74f18989 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 
 #include <errno.h>
@@ -614,9 +618,6 @@ int __net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
     int             i_val, i_handle = -1;
     vlc_bool_t      b_unreach = VLC_FALSE;
 
-    if( i_port == 0 )
-        i_port = 1234; /* historical VLC thing */
-
     if( i_hlim < 1 )
         i_hlim = var_CreateGetInteger( p_this, "ttl" );
 
@@ -878,6 +879,10 @@ int net_SetCSCov (int fd, int sendcov, int recvcov)
             return VLC_SUCCESS;
 #endif
     }
+#if !defined( UDPLITE_RECV_CSCOV ) && !defined( DCCP_SOCKOPT_SEND_CSCOV )
+    VLC_UNUSED(sendcov);
+    VLC_UNUSED(recvcov);
+#endif
 
     return VLC_EGENERIC;
 }