From cd94f6cb634ff5349f1f36883b08e2416c80434a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 21 Mar 2002 23:41:28 +0000 Subject: Missed a couple of fetch/store_ints. Jeremy. (This used to be commit 51189e62a7f20db1835a54c7af1e39f4712c0b95) --- source3/nsswitch/winbindd_idmap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/nsswitch/winbindd_idmap.c b/source3/nsswitch/winbindd_idmap.c index fbecbe3252..897d93b0f0 100644 --- a/source3/nsswitch/winbindd_idmap.c +++ b/source3/nsswitch/winbindd_idmap.c @@ -42,7 +42,7 @@ static BOOL allocate_id(uid_t *id, BOOL isgroup) /* Get current high water mark */ - if ((hwm = tdb_fetch_int(idmap_tdb, + if ((hwm = tdb_fetch_int32(idmap_tdb, isgroup ? HWM_GROUP : HWM_USER)) == -1) { return False; } @@ -63,7 +63,7 @@ static BOOL allocate_id(uid_t *id, BOOL isgroup) /* Store new high water mark */ - tdb_store_int(idmap_tdb, isgroup ? HWM_GROUP : HWM_USER, hwm); + tdb_store_int32(idmap_tdb, isgroup ? HWM_GROUP : HWM_USER, hwm); return True; } @@ -401,11 +401,11 @@ void winbindd_idmap_status(void) /* Get current high water marks */ - if ((user_hwm = tdb_fetch_int(idmap_tdb, HWM_USER)) == -1) { + if ((user_hwm = tdb_fetch_int32(idmap_tdb, HWM_USER)) == -1) { DEBUG(DUMP_INFO, ("\tCould not get userid high water mark!\n")); } - if ((group_hwm = tdb_fetch_int(idmap_tdb, HWM_GROUP)) == -1) { + if ((group_hwm = tdb_fetch_int32(idmap_tdb, HWM_GROUP)) == -1) { DEBUG(DUMP_INFO, ("\tCould not get groupid high water mark!\n")); } -- cgit