Commit f466d361 authored by Anthony Ryan's avatar Anthony Ryan Committed by Jari Sundell

Remove stray getifaddrs(), it's output was unused and freeifaddrs() (#128)

isn't called anywhere
parent 5594501e
......@@ -37,7 +37,6 @@
#include "config.h"
#include <stdio.h>
#include <ifaddrs.h>
#include <rak/socket_address.h>
#include <sys/types.h>
#include <errno.h>
......@@ -128,11 +127,6 @@ get_priority(const rak::socket_address& addr) {
// Linux-specific implementation that understands how to filter away
// understands how to filter away secondary addresses.
bool get_local_address(sa_family_t family, rak::socket_address *address) {
ifaddrs *ifaddrs;
if (getifaddrs(&ifaddrs)) {
return false;
}
rak::socket_address best_addr;
switch (family) {
case AF_INET:
......
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