summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-06 17:09:57 +0200
committerMichael Adam <obnox@samba.org>2008-05-08 18:29:08 +0200
commit79a009b876f9679ed054775ebf0dda479484f827 (patch)
tree150bc0192f6b6428cae4d025c285707f2aca4a5b
parent077f24e51e26ea2e6ebafc257d9387f301ad9e44 (diff)
downloadsamba-79a009b876f9679ed054775ebf0dda479484f827.tar.gz
samba-79a009b876f9679ed054775ebf0dda479484f827.tar.bz2
samba-79a009b876f9679ed054775ebf0dda479484f827.zip
registry: change order of arguments of regdb_fetch_key_internal()
list talloc context first. Michael (This used to be commit 23d7002b22ddcd2c52650463f31b72449aecaaaa)
-rw-r--r--source3/registry/reg_backend_db.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 8ebe647a98..638d9b144c 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -753,7 +753,7 @@ fail:
}
-static TDB_DATA regdb_fetch_key_internal(const char *key, TALLOC_CTX *mem_ctx)
+static TDB_DATA regdb_fetch_key_internal(TALLOC_CTX *mem_ctx, const char *key)
{
char *path = NULL;
@@ -772,7 +772,7 @@ static bool regdb_key_exists(const char *key)
TDB_DATA value;
bool ret;
- value = regdb_fetch_key_internal(key, mem_ctx);
+ value = regdb_fetch_key_internal(mem_ctx, key);
ret = (value.dptr != NULL);
TALLOC_FREE(mem_ctx);
@@ -801,7 +801,7 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
ctr->seqnum = regdb_get_seqnum();
- value = regdb_fetch_key_internal(key, frame);
+ value = regdb_fetch_key_internal(frame, key);
buf = value.dptr;
buflen = value.dsize;
@@ -931,7 +931,7 @@ int regdb_fetch_values( const char* key, REGVAL_CTR *values )
values->seqnum = regdb_get_seqnum();
- value = regdb_fetch_key_internal(keystr, ctx);
+ value = regdb_fetch_key_internal(ctx, keystr);
if (!value.dptr) {
/* all keys have zero values by default */