summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/interfaces.c2
1 files changed, 1 insertions, 1 deletions
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<total;) {
if (iface_comp(&ifaces[i-1], &ifaces[i]) == 0) {