From 8d7c88667190fe286971ac4fffb64ee5bd9eeeb0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 18 Oct 2005 03:24:00 +0000 Subject: r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4 x86_64 box. Jeremy. (This used to be commit d720867a788c735e56d53d63265255830ec21208) --- source3/utils/net_idmap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/utils/net_idmap.c') diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c index 7abb31ab3d..0ee180e13e 100644 --- a/source3/utils/net_idmap.c +++ b/source3/utils/net_idmap.c @@ -76,8 +76,8 @@ static int net_idmap_dump(int argc, const char **argv) struct hwms { BOOL ok; - int user_hwm; - int group_hwm; + uid_t user_hwm; + gid_t group_hwm; }; static int net_idmap_find_max_id(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA data, @@ -160,8 +160,8 @@ static NTSTATUS net_idmap_fixup_hwm(void) goto done; } - if ((tdb_store_int32(idmap_tdb, "USER HWM", hwms.user_hwm) != 0) || - (tdb_store_int32(idmap_tdb, "GROUP HWM", hwms.group_hwm) != 0)) { + if ((tdb_store_int32(idmap_tdb, "USER HWM", (int32)hwms.user_hwm) != 0) || + (tdb_store_int32(idmap_tdb, "GROUP HWM", (int32)hwms.group_hwm) != 0)) { d_printf("Could not store HWMs\n"); goto done; } -- cgit