summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-02-22 10:26:04 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-02-22 11:45:49 +0100
commit85f4f73ed4eacc96005e1eb8a591c84474c20845 (patch)
tree72abe201cadacafd2887fd06406316a8d923740a /source4
parent5590ac257f8656858946c38f7adefcd877182379 (diff)
downloadsamba-85f4f73ed4eacc96005e1eb8a591c84474c20845.tar.gz
samba-85f4f73ed4eacc96005e1eb8a591c84474c20845.tar.bz2
samba-85f4f73ed4eacc96005e1eb8a591c84474c20845.zip
s4:torture/rpc/netlogon.c - fix two build warnings by casts
Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Feb 22 11:45:49 CET 2011 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/netlogon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c
index 30c42c0f4e..e05fe9bc67 100644
--- a/source4/torture/rpc/netlogon.c
+++ b/source4/torture/rpc/netlogon.c
@@ -776,7 +776,7 @@ static bool test_netlogon_ops_args(struct dcerpc_pipe *p, struct torture_context
for (i=52;i<53;i++) {
ZERO_STRUCT(auth2);
/* the authenticator should be ignored by the server */
- generate_random_buffer(&auth, sizeof(auth));
+ generate_random_buffer((uint8_t *) &auth, sizeof(auth));
r.in.validation_level = i;
@@ -815,7 +815,7 @@ static bool test_netlogon_ops_args(struct dcerpc_pipe *p, struct torture_context
for (i=2;i<=3;i++) {
ZERO_STRUCT(auth2);
/* the authenticator should be ignored by the server */
- generate_random_buffer(&auth, sizeof(auth));
+ generate_random_buffer((uint8_t *) &auth, sizeof(auth));
r.in.validation_level = i;