summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-20 21:54:50 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-20 22:33:01 +0200
commit871cdec4141e29f377b11fa7a5c177ac7e2dae80 (patch)
treec446435eac47ad3775c15629a3e9c756a2054289
parent82fd4837589bbf5918e672669ed30ad300bf3a4a (diff)
downloadsamba-871cdec4141e29f377b11fa7a5c177ac7e2dae80.tar.gz
samba-871cdec4141e29f377b11fa7a5c177ac7e2dae80.tar.bz2
samba-871cdec4141e29f377b11fa7a5c177ac7e2dae80.zip
s4:registry RPC server - quite some build warnings on Solaris
-rw-r--r--source4/rpc_server/winreg/rpc_winreg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c
index 575902a164..a39a7d1483 100644
--- a/source4/rpc_server/winreg/rpc_winreg.c
+++ b/source4/rpc_server/winreg/rpc_winreg.c
@@ -311,11 +311,11 @@ static WERROR dcesrv_winreg_EnumValue(struct dcesrv_call_state *dce_call,
}
r->out.name->size = r->in.name->size;
- r->out.type = talloc(mem_ctx, uint32_t);
+ r->out.type = talloc(mem_ctx, enum winreg_Type);
if (!r->out.type) {
return WERR_NOMEM;
}
- *r->out.type = data_type;
+ *r->out.type = (enum winreg_Type) data_type;
/* check the client has enough room for the value */
if (r->in.value != NULL &&
@@ -530,11 +530,11 @@ static WERROR dcesrv_winreg_QueryValue(struct dcesrv_call_state *dce_call,
}
}
- r->out.type = talloc(mem_ctx, uint32_t);
+ r->out.type = talloc(mem_ctx, enum winreg_Type);
if (!r->out.type) {
return WERR_NOMEM;
}
- *r->out.type = value_type;
+ *r->out.type = (enum winreg_Type) value_type;
r->out.data_length = talloc(mem_ctx, uint32_t);
if (!r->out.data_length) {
return WERR_NOMEM;