Commit a294767e authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

iphlpapi: Fix unused function warning for get_ipv6_addr_scope_table & find_ipv6_addr_scope.

parent 4c445127
......@@ -2652,6 +2652,7 @@ static int compare_udp6_rows(const void *a, const void *b)
return rowA->dwLocalPort - rowB->dwLocalPort;
}
#ifdef __linux__
struct ipv6_addr_scope
{
IN6_ADDR addr;
......@@ -2662,15 +2663,12 @@ static struct ipv6_addr_scope *get_ipv6_addr_scope_table(unsigned int *size)
{
struct ipv6_addr_scope *table = NULL;
unsigned int table_size = 0;
char buf[512], *ptr;
FILE *fp;
if (!(table = HeapAlloc( GetProcessHeap(), 0, sizeof(table[0]) )))
return NULL;
#ifdef __linux__
{
FILE *fp;
char buf[512], *ptr;
if (!(fp = fopen( "/proc/net/if_inet6", "r" )))
goto failed;
......@@ -2707,11 +2705,6 @@ static struct ipv6_addr_scope *get_ipv6_addr_scope_table(unsigned int *size)
}
fclose(fp);
}
#else
FIXME( "not implemented\n" );
goto failed;
#endif
*size = table_size;
return table;
......@@ -2745,6 +2738,7 @@ static DWORD find_ipv6_addr_scope(const IN6_ADDR *addr, const struct ipv6_addr_s
return -1;
}
#endif
DWORD build_tcp6_table( TCP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE heap, DWORD flags,
DWORD *size )
......
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