diff options
author | Volker Lendecke <vl@samba.org> | 2012-06-14 20:26:28 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-06-15 12:14:27 +0200 |
commit | 737c0a54731803c84f0f29d96dd40ac819aec3e8 (patch) | |
tree | de2309feed737fe96ee85cb1f67a946ef792d35d /source3/registry | |
parent | 9afd4be688429d7bb344087cb3eda876f18e19f9 (diff) | |
download | samba-737c0a54731803c84f0f29d96dd40ac819aec3e8.tar.gz |
dbwrap: dbwrap_fetch_int32->dbwrap_fetch_int32_bystring
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_backend_db.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index a5bb5d7943a..2e8cef75fac 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -72,7 +72,8 @@ static NTSTATUS regdb_trans_do_action(struct db_context *db, void *private_data) int32_t version_id; struct regdb_trans_ctx *ctx = (struct regdb_trans_ctx *)private_data; - status = dbwrap_fetch_int32(db, REGDB_VERSION_KEYNAME, &version_id); + status = dbwrap_fetch_int32_bystring(db, REGDB_VERSION_KEYNAME, + &version_id); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("ERROR: could not fetch registry db version: %s. " @@ -754,7 +755,8 @@ WERROR regdb_init(void) DEBUG(10, ("regdb_init: registry db openend. refcount reset (%d)\n", regdb_refcount)); - status = dbwrap_fetch_int32(regdb, REGDB_VERSION_KEYNAME, &vers_id); + status = dbwrap_fetch_int32_bystring(regdb, REGDB_VERSION_KEYNAME, + &vers_id); if (!NT_STATUS_IS_OK(status)) { DEBUG(10, ("regdb_init: registry version uninitialized " "(got %d), initializing to version %d\n", |