summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-14 20:30:16 +0200
committerMichael Adam <obnox@samba.org>2012-06-15 12:14:27 +0200
commit749314fcf99cef4a1a162d622e10b6eb8998938f (patch)
treeedb8bf82c76fb96ee4a125f147e33273641416fd /source3/winbindd
parent737c0a54731803c84f0f29d96dd40ac819aec3e8 (diff)
downloadsamba-749314fcf99cef4a1a162d622e10b6eb8998938f.tar.gz
samba-749314fcf99cef4a1a162d622e10b6eb8998938f.tar.bz2
samba-749314fcf99cef4a1a162d622e10b6eb8998938f.zip
dbwrap: dbwrap_store_int32->dbwrap_store_int32_bystring
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap_tdb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/winbindd/idmap_tdb.c b/source3/winbindd/idmap_tdb.c
index a9a7e9c71a..3e46cf76b7 100644
--- a/source3/winbindd/idmap_tdb.c
+++ b/source3/winbindd/idmap_tdb.c
@@ -193,7 +193,7 @@ static bool idmap_tdb_upgrade(struct idmap_domain *dom, struct db_context *db)
wm = dom->low_id;
}
- status = dbwrap_store_int32(db, HWM_USER, wm);
+ status = dbwrap_store_int32_bystring(db, HWM_USER, wm);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("Unable to byteswap user hwm in idmap "
"database: %s\n", nt_errstr(status)));
@@ -211,7 +211,7 @@ static bool idmap_tdb_upgrade(struct idmap_domain *dom, struct db_context *db)
wm = dom->low_id;
}
- status = dbwrap_store_int32(db, HWM_GROUP, wm);
+ status = dbwrap_store_int32_bystring(db, HWM_GROUP, wm);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("Unable to byteswap group hwm in idmap "
"database: %s\n", nt_errstr(status)));
@@ -235,7 +235,8 @@ static bool idmap_tdb_upgrade(struct idmap_domain *dom, struct db_context *db)
return False;
}
- status = dbwrap_store_int32(db, "IDMAP_VERSION", IDMAP_VERSION);
+ status = dbwrap_store_int32_bystring(db, "IDMAP_VERSION",
+ IDMAP_VERSION);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("Unable to store idmap version in database: %s\n",
nt_errstr(status)));