diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-14 10:00:49 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-14 18:44:20 +1100 |
commit | 8120bc2ba957fa78e04f6f5fc257c91a7f735e82 (patch) | |
tree | 43e6fd9bac79ecbad7c1f7b7199bb8f42276ab9b /source3/libads | |
parent | 7347ca359d6050575be70274a55b18628d0f3c5b (diff) | |
download | samba-8120bc2ba957fa78e04f6f5fc257c91a7f735e82.tar.gz samba-8120bc2ba957fa78e04f6f5fc257c91a7f735e82.tar.bz2 samba-8120bc2ba957fa78e04f6f5fc257c91a7f735e82.zip |
s3-lib: use TYPESAFE_QSORT() in remaining s3 library code
the sort_query_replies() in nmblib.c is a TODO. It uses a hack that
treats a char* as a structure. I've left that one alone for now.
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/dns.c b/source3/libads/dns.c index 1765f95ca0..2fa6f18c77 100644 --- a/source3/libads/dns.c +++ b/source3/libads/dns.c @@ -563,7 +563,7 @@ static NTSTATUS ads_dns_lookup_srv( TALLOC_CTX *ctx, } } - qsort( dcs, idx, sizeof(struct dns_rr_srv), QSORT_CAST dnssrvcmp ); + TYPESAFE_QSORT(dcs, idx, dnssrvcmp ); *dclist = dcs; *numdcs = idx; |