summaryrefslogtreecommitdiff
path: root/source4/lib/registry/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-08-27 18:56:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:55 -0500
commit616c45f16a56527f54d428a7fbeabcc9952459f5 (patch)
tree7f8ba43baf5051a73f09f699f70aecb684410f85 /source4/lib/registry/tests
parented8d04ead92839d54ca67f55a8e2be9723dc6b0d (diff)
downloadsamba-616c45f16a56527f54d428a7fbeabcc9952459f5.tar.gz
samba-616c45f16a56527f54d428a7fbeabcc9952459f5.tar.bz2
samba-616c45f16a56527f54d428a7fbeabcc9952459f5.zip
r24718: Fix some compiler warnings.
(This used to be commit 08f7389ab7312d350e056b1ba98da86d80944424)
Diffstat (limited to 'source4/lib/registry/tests')
-rw-r--r--source4/lib/registry/tests/diff.c4
-rw-r--r--source4/lib/registry/tests/registry.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/source4/lib/registry/tests/diff.c b/source4/lib/registry/tests/diff.c
index 220da88601..99a4589309 100644
--- a/source4/lib/registry/tests/diff.c
+++ b/source4/lib/registry/tests/diff.c
@@ -45,9 +45,7 @@ static bool test_diff_load(struct torture_context *test)
static bool test_diff_apply(struct torture_context *test)
{
- /*
-_PUBLIC_ WERROR reg_diff_apply (const char *filename, struct registry_context *ctx)
- */
+ /* _PUBLIC_ WERROR reg_diff_apply (const char *filename, struct registry_context *ctx) */
return true;
}
diff --git a/source4/lib/registry/tests/registry.c b/source4/lib/registry/tests/registry.c
index 2aab034ff3..dfc8e09d57 100644
--- a/source4/lib/registry/tests/registry.c
+++ b/source4/lib/registry/tests/registry.c
@@ -87,7 +87,7 @@ static bool test_predef_key_by_name_invalid(struct torture_context *tctx,
struct registry_key *root;
WERROR error;
- error = reg_get_predefined_key_by_name(tctx, "BLA", &root);
+ error = reg_get_predefined_key_by_name(rctx, "BLA", &root);
torture_assert_werr_equal(tctx, error, WERR_BADFILE,
"getting predefined key failed");
return true;