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/libmsrpc/cac_lsarpc.c | 2 +- source3/libmsrpc/cac_winreg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/libmsrpc') diff --git a/source3/libmsrpc/cac_lsarpc.c b/source3/libmsrpc/cac_lsarpc.c index 3896c715f5..d2e52f01a4 100644 --- a/source3/libmsrpc/cac_lsarpc.c +++ b/source3/libmsrpc/cac_lsarpc.c @@ -728,7 +728,7 @@ int cac_LsaQueryTrustedDomainInfo(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, str int cac_LsaEnumPrivileges(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct LsaEnumPrivileges *op) { struct rpc_pipe_client *pipe_hnd = NULL; - int num_privs; + uint32 num_privs; char **priv_names; uint32 *high_bits; uint32 *low_bits; diff --git a/source3/libmsrpc/cac_winreg.c b/source3/libmsrpc/cac_winreg.c index 66fa8806fd..1d60cc8fb2 100644 --- a/source3/libmsrpc/cac_winreg.c +++ b/source3/libmsrpc/cac_winreg.c @@ -667,7 +667,7 @@ int cac_RegEnumValues(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct RegEnumV } /*we need to assume that the max number of values will be enumerated*/ - types_out = talloc_array(mem_ctx, int, op->in.max_values); + types_out = (uint32 *)talloc_array(mem_ctx, int, op->in.max_values); if(!types_out) { hnd->status = NT_STATUS_NO_MEMORY; return CAC_FAILURE; -- cgit