diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-14 10:03:12 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-14 18:44:21 +1100 |
commit | 3f0898a9f50a35ae94fda9b89809edae0cd9bbb3 (patch) | |
tree | 672f3aaac9f114a548c92a223ca2d1e304ee1fbc /source3/smbd/lanman.c | |
parent | bc5d203eeb49ad4c6ff85cff6b05577d81cf1816 (diff) | |
download | samba-3f0898a9f50a35ae94fda9b89809edae0cd9bbb3.tar.gz samba-3f0898a9f50a35ae94fda9b89809edae0cd9bbb3.tar.xz samba-3f0898a9f50a35ae94fda9b89809edae0cd9bbb3.zip |
s3-smbd: convert lanman and notify code to TYPESAFE_QSORT()
Diffstat (limited to 'source3/smbd/lanman.c')
-rw-r--r-- | source3/smbd/lanman.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 4df1cea8d1b..4c947749bae 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -1439,9 +1439,7 @@ static bool api_RNetServerEnum2(connection_struct *conn, uint16 vuid, data_len = fixed_len = string_len = 0; missed = 0; - if (total > 0) { - qsort(servers,total,sizeof(servers[0]),QSORT_CAST srv_comp); - } + TYPESAFE_QSORT(servers, total, srv_comp); { char *lastname=NULL; @@ -1616,9 +1614,7 @@ static bool api_RNetServerEnum3(connection_struct *conn, uint16 vuid, data_len = fixed_len = string_len = 0; missed = 0; - if (total > 0) { - qsort(servers,total,sizeof(servers[0]),QSORT_CAST srv_comp); - } + TYPESAFE_QSORT(servers, total, srv_comp); if (first_name[0] != '\0') { struct srv_info_struct *first_server = NULL; |