diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-11-25 19:21:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:09 -0500 |
commit | 089f3843c5eadc792f9f8399bf3df45601621b2c (patch) | |
tree | 11e59345a8fb111ab9825b9b1f5533ac33154766 /source4 | |
parent | f9bbcc53d69641ffc54267d506165aafbf1a0b98 (diff) | |
download | samba-089f3843c5eadc792f9f8399bf3df45601621b2c.tar.gz samba-089f3843c5eadc792f9f8399bf3df45601621b2c.tar.bz2 samba-089f3843c5eadc792f9f8399bf3df45601621b2c.zip |
r3967: fix compiler warnings
metze
(This used to be commit 3f2c3ce2f0d11ea9f3c058690e0bb14d590c714c)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/auth/session.c | 4 | ||||
-rw-r--r-- | source4/torture/local/messaging.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/libcli/auth/session.c b/source4/libcli/auth/session.c index fdb6462b00..91eee9ce81 100644 --- a/source4/libcli/auth/session.c +++ b/source4/libcli/auth/session.c @@ -124,8 +124,8 @@ char *sess_decrypt_string(DATA_BLOB *blob, const DATA_BLOB *session_key) IVAL(out.data, 4))); return NULL; } - - ret = strndup(out.data+8, slen); + + ret = strndup((const char *)(out.data+8), slen); data_blob_free(&out); diff --git a/source4/torture/local/messaging.c b/source4/torture/local/messaging.c index 303ffa8fe9..1bf8de15fe 100644 --- a/source4/torture/local/messaging.c +++ b/source4/torture/local/messaging.c @@ -91,8 +91,8 @@ static BOOL test_ping_speed(TALLOC_CTX *mem_ctx) DATA_BLOB data; NTSTATUS status1, status2; - data.data = discard_const_p(char, "testing"); - data.length = strlen(data.data); + data.data = discard_const_p(void, "testing"); + data.length = strlen((const char *)data.data); status1 = messaging_send(msg_ctx, 1, MY_PING, &data); status2 = messaging_send(msg_ctx, 1, MY_PING, NULL); |