summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-04-17 18:40:56 +0200
committerAndrew Bartlett <abartlet@samba.org>2008-04-17 18:40:56 +0200
commitc9a12fa55d63e4bccb5b453186022dae1da39032 (patch)
treed960b336557121319acf71779a248d5107c44550 /source4
parentd0525ff0c2c9ae6d7e39c0fda1d4ab956763b585 (diff)
downloadsamba-c9a12fa55d63e4bccb5b453186022dae1da39032.tar.gz
samba-c9a12fa55d63e4bccb5b453186022dae1da39032.tar.bz2
samba-c9a12fa55d63e4bccb5b453186022dae1da39032.zip
More endian fixes in the registry
(This used to be commit b26662be196a84237543eb90d6e08809489df3a9)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/registry/tests/registry.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/registry/tests/registry.c b/source4/lib/registry/tests/registry.c
index 85b68ac8a2..661d7c2c69 100644
--- a/source4/lib/registry/tests/registry.c
+++ b/source4/lib/registry/tests/registry.c
@@ -431,9 +431,9 @@ static bool test_get_value(struct torture_context *tctx, void *_data)
&data);
torture_assert_werr_ok(tctx, error, "getting value");
- torture_assert_int_equal(tctx, 4, data.length, "value length ok");
- torture_assert_mem_equal(tctx, data.data, value, 4,
- "value content ok");
+ torture_assert_int_equal(tctx, sizeof(value), data.length, "value length ok");
+ torture_assert_mem_equal(tctx, data.data, value, sizeof(value),
+ "value content ok");
torture_assert_int_equal(tctx, REG_DWORD, type, "value type");
return true;
@@ -501,8 +501,8 @@ static bool test_list_values(struct torture_context *tctx, void *_data)
torture_assert_werr_ok(tctx, error, "getting value");
torture_assert_str_equal(tctx, name, "bar", "value name");
- torture_assert_int_equal(tctx, 4, data.length, "value length");
- torture_assert_mem_equal(tctx, data.data, &value, sizeof(value),
+ torture_assert_int_equal(tctx, sizeof(value), data.length, "value length");
+ torture_assert_mem_equal(tctx, data.data, value, sizeof(value),
"value content");
torture_assert_int_equal(tctx, REG_DWORD, type, "value type");