# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <errno.h>
{
struct addrinfo hints, *res, *ptr;
int i_val, i_handle = -1;
- vlc_bool_t b_unreach = VLC_FALSE;
-
- if( i_port == 0 )
- i_port = 1234; /* historical VLC thing */
+ bool b_unreach = false;
if( i_hlim < 1 )
i_hlim = var_CreateGetInteger( p_this, "ttl" );
#else
if( errno == ENETUNREACH )
#endif
- b_unreach = VLC_TRUE;
+ b_unreach = true;
else
{
msg_Warn( p_this, "%s port %d : %m", psz_host, i_port);
return VLC_SUCCESS;
#endif
}
+#if !defined( UDPLITE_RECV_CSCOV ) && !defined( DCCP_SOCKOPT_SEND_CSCOV )
+ VLC_UNUSED(sendcov);
+ VLC_UNUSED(recvcov);
+#endif
return VLC_EGENERIC;
}