summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-13 17:36:51 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-14 12:01:30 +0200
commitbc6a43aeb41fc5ccf3a34f2ec91e1328ae82d90e (patch)
tree837a4306d750ace04f3debd8fd8cb600de5c24e6 /source4/torture
parentd0180570b3e1d0a4aa9c7a55af9fd3b4c925ec77 (diff)
downloadsamba-bc6a43aeb41fc5ccf3a34f2ec91e1328ae82d90e.tar.gz
samba-bc6a43aeb41fc5ccf3a34f2ec91e1328ae82d90e.tar.bz2
samba-bc6a43aeb41fc5ccf3a34f2ec91e1328ae82d90e.zip
s4:torture/rpc/winreg: fix compiler warnings
metze
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/winreg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index d7e1247e65..461deff2d0 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -2437,7 +2437,7 @@ static bool test_Open(struct torture_context *tctx, struct dcerpc_pipe *p,
struct winreg_OpenHKLM r;
struct dcerpc_binding_handle *b = p->binding_handle;
- winreg_open_fn open_fn = userdata;
+ winreg_open_fn open_fn = (winreg_open_fn)userdata;
r.in.system_name = 0;
r.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
@@ -2451,7 +2451,7 @@ static bool test_Open(struct torture_context *tctx, struct dcerpc_pipe *p,
ret = false;
}
- if (open_fn == (void *)dcerpc_winreg_OpenHKLM_r) {
+ if (open_fn == (winreg_open_fn)dcerpc_winreg_OpenHKLM_r) {
torture_assert(tctx,
test_HKLM_wellknown(tctx, b, &handle),
"failed to test HKLM wellknown keys");
@@ -2468,7 +2468,7 @@ static bool test_Open(struct torture_context *tctx, struct dcerpc_pipe *p,
}
/* The HKCR hive has a very large fanout */
- if (open_fn == (void *)dcerpc_winreg_OpenHKCR_r) {
+ if (open_fn == (winreg_open_fn)dcerpc_winreg_OpenHKCR_r) {
if(!test_key(p, tctx, &handle, MAX_DEPTH - 1, false)) {
ret = false;
}