summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-14 09:58:33 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-14 18:44:20 +1100
commit007f24f29dd61d4585933362529f13c005cf1ed2 (patch)
tree211bd9fd6369f4b2994d29b306047c52b2447c7a /source3
parent76a7382346f0c9d945adf39da19d69616e2463b3 (diff)
downloadsamba-007f24f29dd61d4585933362529f13c005cf1ed2.tar.gz
samba-007f24f29dd61d4585933362529f13c005cf1ed2.tar.bz2
samba-007f24f29dd61d4585933362529f13c005cf1ed2.zip
s3-lib: use TYPESAFE_QSORT() in s3 interfaces code
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) {