summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-06-20 04:15:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:53:26 -0500
commitd291b8bf933e7595ac2967602d90918c286e3429 (patch)
treed9ba06a19ecdd22052e23856c181fcf5f81c280e /source4/torture
parent576b1c84fb9c5de642b549d769764488436f2c5f (diff)
downloadsamba-d291b8bf933e7595ac2967602d90918c286e3429.tar.gz
samba-d291b8bf933e7595ac2967602d90918c286e3429.tar.bz2
samba-d291b8bf933e7595ac2967602d90918c286e3429.zip
r23551: Change data_blob_equal to data_blob_cmp, suitable for sorting with qsort().
Andrew Bartlett (This used to be commit 96ef5259c63ad6245c94c40d6059d736b1534183)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/basic/aliases.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/basic/aliases.c b/source4/torture/basic/aliases.c
index bf052cf5cc..78daf3206b 100644
--- a/source4/torture/basic/aliases.c
+++ b/source4/torture/basic/aliases.c
@@ -68,8 +68,8 @@ static bool gen_aliases(struct torture_context *tctx,
for (t2b=alias_blobs; t2b; t2b=t2b->next) {
for (t2b2=alias_blobs; t2b2; t2b2=t2b2->next) {
if (t2b->level >= t2b2->level) continue;
- if (data_blob_equal(&t2b->params, &t2b2->params) &&
- data_blob_equal(&t2b->data, &t2b2->data)) {
+ if (data_blob_cmp(&t2b->params, &t2b2->params) == 0 &&
+ data_blob_cmp(&t2b->data, &t2b2->data) == 0) {
torture_comment(tctx,
"\tLevel %u (0x%x) and level %u (0x%x) are possible aliases\n",
t2b->level, t2b->level, t2b2->level, t2b2->level);