s3-lib: use TYPESAFE_QSORT() in s3 interfaces code
authorAndrew Tridgell <tridge@samba.org>
Sat, 13 Feb 2010 22:58:33 +0000 (09:58 +1100)
committerAndrew Tridgell <tridge@samba.org>
Sun, 14 Feb 2010 07:44:20 +0000 (18:44 +1100)
source3/lib/interfaces.c

index b4b380000a287fa0f1026fc4f0526c579941145a..5996fdee06b9740631db255113a6d7e08e6c4416 100644 (file)
@@ -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) {