Commit 009bce07 authored by Steve Lhomme's avatar Steve Lhomme

dsm: fix mismatched pointer

Fixes this warning with clang10:
incompatible pointer types passing 'u_long *' (aka 'unsigned long *') to parameter of type 'uint32_t *' (aka 'unsigned int *')

Similar to what is done in access/smb2.c
parent c98b8e88
......@@ -279,10 +279,12 @@ static int get_address( stream_t *p_access )
struct addrinfo *p_info = NULL;
/* Is this a netbios name on this LAN ? */
uint32_t ip4_addr;
if( netbios_ns_resolve( p_sys->p_ns, p_sys->url.psz_host,
NETBIOS_FILESERVER,
&p_sys->addr.s_addr) == 0 )
&ip4_addr) == 0 )
{
p_sys->addr.s_addr = ip4_addr;
strlcpy( p_sys->netbios_name, p_sys->url.psz_host, 16);
return VLC_SUCCESS;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment