Commit f4e2838f authored by Christoph Reiter's avatar Christoph Reiter

Fix build with clang

Building libnice with clang 15 fails with:

interfaces.c:913:12: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'guint' (aka 'unsigned int') [-Wint-conversion]
    return NULL;

Fix by returning 0 instead.
parent fdbffeb2
...@@ -910,7 +910,7 @@ nice_interfaces_get_if_index_by_addr (NiceAddress *addr) ...@@ -910,7 +910,7 @@ nice_interfaces_get_if_index_by_addr (NiceAddress *addr)
addresses = _nice_get_adapters_addresses (); addresses = _nice_get_adapters_addresses ();
if (!addresses) if (!addresses)
return NULL; return 0;
for (a = addresses; a != NULL; a = a->Next) { for (a = addresses; a != NULL; a = a->Next) {
/* Various conditions for ignoring the interface. */ /* Various conditions for ignoring the interface. */
......
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