diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-13 13:00:22 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-13 22:36:12 +1100 |
commit | 828b5cd451f88ef267eb3b0dcf819b389ad55ed9 (patch) | |
tree | a5c33c71349afd3dd64fdb4af2e03dce5ba670d4 | |
parent | 0f50f4440d870d0f83b20141f23354a2734c83e3 (diff) | |
download | samba-828b5cd451f88ef267eb3b0dcf819b389ad55ed9.tar.gz samba-828b5cd451f88ef267eb3b0dcf819b389ad55ed9.tar.bz2 samba-828b5cd451f88ef267eb3b0dcf819b389ad55ed9.zip |
s4-socket: use TYPESAFE_QSORT() in netif code
-rw-r--r-- | source4/lib/socket/netif.c | 3 |
1 files changed, 2 insertions, 1 deletions
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<total;) { if (iface_comp(&ifaces[i-1], &ifaces[i]) == 0) { |