From 007f24f29dd61d4585933362529f13c005cf1ed2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 14 Feb 2010 09:58:33 +1100 Subject: s3-lib: use TYPESAFE_QSORT() in s3 interfaces code --- source3/lib/interfaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib') diff --git a/source3/lib/interfaces.c b/source3/lib/interfaces.c index b4b380000a..5996fdee06 100644 --- a/source3/lib/interfaces.c +++ b/source3/lib/interfaces.c @@ -279,7 +279,7 @@ int get_interfaces(TALLOC_CTX *mem_ctx, struct iface_struct **pifaces) 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