summaryrefslogtreecommitdiff
path: root/source4/torture/rap/rpc.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-26 22:09:44 +0200
committerGünther Deschner <gd@samba.org>2010-04-26 22:53:00 +0200
commitaae716d044081e5e1315de4abf22dbeb9d32a18e (patch)
tree751602af1b2086929bafa8cc9fdbaea29ad5a0e7 /source4/torture/rap/rpc.c
parentdbfff90185daecfa452520276c8cabdce3b1c616 (diff)
downloadsamba-aae716d044081e5e1315de4abf22dbeb9d32a18e.tar.gz
samba-aae716d044081e5e1315de4abf22dbeb9d32a18e.tar.bz2
samba-aae716d044081e5e1315de4abf22dbeb9d32a18e.zip
s4: fix some build warnings.
Guenther
Diffstat (limited to 'source4/torture/rap/rpc.c')
-rw-r--r--source4/torture/rap/rpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rap/rpc.c b/source4/torture/rap/rpc.c
index f245a919ef..7696ed8e41 100644
--- a/source4/torture/rap/rpc.c
+++ b/source4/torture/rap/rpc.c
@@ -65,7 +65,7 @@ static bool test_rpc_netservergetinfo(struct torture_context *tctx,
server_name = talloc_strndup(tctx, info.info101->server_name, 16);
- torture_assert_str_equal(tctx, r.out.info.info0.name, server_name, "server name");
+ torture_assert_str_equal(tctx, (const char *)r.out.info.info0.name, server_name, "server name");
if (torture_setting_bool(tctx, "samba3", false)) {
torture_skip(tctx, "skipping netservergetinfo level 1 against samba3");
@@ -79,7 +79,7 @@ static bool test_rpc_netservergetinfo(struct torture_context *tctx,
torture_assert_int_equal(tctx, r.out.status, 0,
"rap_netservergetinfo level 1 failed");
- torture_assert_str_equal(tctx, r.out.info.info1.name, server_name, "server name");
+ torture_assert_str_equal(tctx, (const char *)r.out.info.info1.name, server_name, "server name");
torture_assert_int_equal(tctx, r.out.info.info1.version_major, info.info101->version_major, "version major");
torture_assert_int_equal(tctx, r.out.info.info1.version_minor, info.info101->version_minor, "version minor");
torture_assert_int_equal(tctx, r.out.info.info1.servertype, info.info101->server_type, "server_type");