From 828b5cd451f88ef267eb3b0dcf819b389ad55ed9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 13 Feb 2010 13:00:22 +1100 Subject: s4-socket: use TYPESAFE_QSORT() in netif code --- source4/lib/socket/netif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/lib/socket') diff --git a/source4/lib/socket/netif.c b/source4/lib/socket/netif.c index bf410af441..e36f268bde 100644 --- a/source4/lib/socket/netif.c +++ b/source4/lib/socket/netif.c @@ -34,6 +34,7 @@ #include "includes.h" #include "system/network.h" #include "netif.h" +#include "lib/util/tsort.h" /**************************************************************************** Try the "standard" getifaddrs/freeifaddrs interfaces. @@ -109,7 +110,7 @@ int get_interfaces(struct iface_struct *ifaces, int max_interfaces) if (total <= 0) return total; /* now we need to remove duplicates */ - qsort(ifaces, total, sizeof(ifaces[0]), QSORT_CAST iface_comp); + TYPESAFE_QSORT(ifaces, total, iface_comp); for (i=1;i