git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76a7382
)
s3-lib: use TYPESAFE_QSORT() in s3 interfaces code
author
Andrew Tridgell
<tridge@samba.org>
Sat, 13 Feb 2010 22:58:33 +0000
(09:58 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Sun, 14 Feb 2010 07:44:20 +0000
(18:44 +1100)
source3/lib/interfaces.c
patch
|
blob
|
history
diff --git
a/source3/lib/interfaces.c
b/source3/lib/interfaces.c
index b4b380000a287fa0f1026fc4f0526c579941145a..5996fdee06b9740631db255113a6d7e08e6c4416 100644
(file)
--- 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) {