summaryrefslogtreecommitdiff
path: root/source3/libsmb/nmblib.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-14 10:00:49 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-14 18:44:20 +1100
commit8120bc2ba957fa78e04f6f5fc257c91a7f735e82 (patch)
tree43e6fd9bac79ecbad7c1f7b7199bb8f42276ab9b /source3/libsmb/nmblib.c
parent7347ca359d6050575be70274a55b18628d0f3c5b (diff)
downloadsamba-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/libsmb/nmblib.c')
-rw-r--r--source3/libsmb/nmblib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c
index 1a2106675b..150e1f6af9 100644
--- a/source3/libsmb/nmblib.c
+++ b/source3/libsmb/nmblib.c
@@ -1232,6 +1232,10 @@ void sort_query_replies(char *data, int n, struct in_addr ip)
putip(sort_ip, (char *)&ip);
+ /* TODO:
+ this can't use TYPESAFE_QSORT() as the types are wrong.
+ It should be fixed to use a real type instead of char*
+ */
qsort(data, n, 6, QSORT_CAST name_query_comp);
}