diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2023-01-09 19:12:52 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2023-01-09 19:12:52 +0100 |
commit | f4e2838f664f4007838f4c635d7a4fe653aae68b (patch) | |
tree | 8cad3db5c5ddacffe607647879feae9f0466f853 | |
parent | fdbffeb285b909b983da0b46c9206352d3daa62f (diff) | |
download | libnice-f4e2838f664f4007838f4c635d7a4fe653aae68b.tar.gz |
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.
-rw-r--r-- | agent/interfaces.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/interfaces.c b/agent/interfaces.c index 3590e0d..30944f5 100644 --- a/agent/interfaces.c +++ b/agent/interfaces.c @@ -910,7 +910,7 @@ nice_interfaces_get_if_index_by_addr (NiceAddress *addr) addresses = _nice_get_adapters_addresses (); if (!addresses) - return NULL; + return 0; for (a = addresses; a != NULL; a = a->Next) { /* Various conditions for ignoring the interface. */ |