if (host && !*host)
host = NULL;
- msg_Dbg (obj, "net: opening %s datagram port %d", host ?: "any", port);
+ msg_Dbg (obj, "net: opening %s datagram port %d",
+ host ? host : "any", port);
int val = vlc_getaddrinfo (obj, host, port, &hints, &res);
if (val)
for (const struct addrinfo *ptr = res; ptr != NULL; ptr = ptr->ai_next)
{
int fd = net_Socket (obj, ptr->ai_family, ptr->ai_socktype,
- protocol ?: ptr->ai_protocol);
+ protocol ? protocol : ptr->ai_protocol);
if (fd == -1)
{
msg_Dbg (obj, "socket error: %m");
{
char *str;
int fd = net_Socket (p_this, ptr->ai_family, ptr->ai_socktype,
- proto ?: ptr->ai_protocol);
+ proto ? proto : ptr->ai_protocol);
if (fd == -1)
continue;
for (struct addrinfo *ptr = loc; ptr != NULL; ptr = ptr->ai_next)
{
int fd = net_Socket (obj, ptr->ai_family, ptr->ai_socktype,
- protocol ?: ptr->ai_protocol);
+ protocol ? protocol : ptr->ai_protocol);
if (fd == -1)
continue; // usually, address family not supported