]> git.sesse.net Git - vlc/blobdiff - src/network/udp.c
Doxygenization
[vlc] / src / network / udp.c
index 3fe792dc079eb4885a5c77f2631a7377530740d1..92a2c0d23411e1bc6539758de8a0bacbd6a867f1 100644 (file)
@@ -47,7 +47,9 @@
 #   define if_nametoindex( str ) atoi( str )
 #else
 #   include <unistd.h>
-#   include <net/if.h>
+#   ifdef HAVE_NET_IF_H
+#       include <net/if.h>
+#   endif
 #endif
 
 #ifndef SOL_IP
@@ -127,7 +129,7 @@ static int net_SetMcastIface( vlc_object_t *p_this,
                             sizeof( addr ) ) < 0 )
             {
                 msg_Err( p_this, "Cannot use %s as multicast interface: %s",
-                         strerror(errno) );
+                         str, strerror(errno) );
                 return VLC_EGENERIC;
             }
             break;
@@ -284,12 +286,12 @@ int __net_OpenUDP( vlc_object_t *p_this, const char *psz_bind, int i_bind,
     network_socket_t sock;
     module_t         *p_network = NULL;
 
-    if( ( psz_server != NULL ) && ( psz_server[0] == '\0' ) )
+/*    if( ( psz_server != NULL ) && ( psz_server[0] == '\0' ) )
         msg_Warn( p_this, "calling net_OpenUDP with an explicit destination "
                   "is obsolete - use net_ConnectUDP instead" );
     if( i_server != 0 )
         msg_Warn( p_this, "calling net_OpenUDP with an explicit destination "
-                  "port is obsolete - use __net_ConnectUDP instead" );
+                  "port is obsolete - use __net_ConnectUDP instead" );*/
 
     if( psz_server == NULL ) psz_server = "";
     if( psz_bind == NULL ) psz_bind = "";
@@ -355,8 +357,8 @@ int __net_OpenUDP( vlc_object_t *p_this, const char *psz_bind, int i_bind,
         {
             if( sock.i_handle != -1 )
             {
-                msg_Warn( p_this, "net: lame IPv6/IPv4 dual-stack present. "
-                                  "Using only IPv4." );
+                msg_Warn( p_this, "net: lame IPv6/IPv4 dual-stack present, "
+                                  "using only IPv4." );
                 net_Close( fd6 );
             }
             else