diff options
Diffstat (limited to 'source3/registry/regfio.c')
-rw-r--r-- | source3/registry/regfio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/registry/regfio.c b/source3/registry/regfio.c index c3873a894b..fa7dc7dfe9 100644 --- a/source3/registry/regfio.c +++ b/source3/registry/regfio.c @@ -1767,8 +1767,7 @@ static int hashrec_cmp( REGF_HASH_REC *h1, REGF_HASH_REC *h2 ) parent->subkey_index++; /* sort the list by keyname */ - - qsort( parent->subkeys.hashes, parent->subkey_index, sizeof(REGF_HASH_REC), QSORT_CAST hashrec_cmp ); + TYPESAFE_QSORT(parent->subkeys.hashes, parent->subkey_index, hashrec_cmp); if ( !hbin_prs_lf_records( "lf_rec", parent->subkeys.hbin, 0, parent ) ) return False; |