1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

dsdb: Fix the FreeBSD build

My FreeBSD install does not have __compar_fn_t. libreplace has the
QSORT_CAST for systems that do.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2019-07-31 11:08:40 +02:00 committed by Jeremy Allison
parent a8a1ca3f83
commit d8ae281152

View File

@ -222,7 +222,7 @@ static const char **get_sorted_attrs(TALLOC_CTX *mem_ctx,
attrs[i] = a;
}
qsort(attrs, n_attrs, sizeof(char *), (__compar_fn_t)strcasecmp_ptr);
qsort(attrs, n_attrs, sizeof(char *), QSORT_CAST strcasecmp_ptr);
return attrs;
}
@ -313,7 +313,7 @@ static int count_attrs_search_callback(struct ldb_request *req,
}
qsort(found_attrs, msg->num_elements, sizeof(char *),
(__compar_fn_t)strcasecmp_ptr);
QSORT_CAST strcasecmp_ptr);
/* find and report duplicates */