From cf0f4ec073b694e43daeeddf9aab51cd3e51fd2b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 30 Apr 2006 13:54:03 +0000 Subject: r15358: Fix some compiler warnings / type safety. Found by tcc (This used to be commit 12ba42de5886f9f4f9b1698476557e0c217d06f3) --- source4/torture/com/simple.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/torture/com') diff --git a/source4/torture/com/simple.c b/source4/torture/com/simple.c index bb67ca7bba..82aab476be 100644 --- a/source4/torture/com/simple.c +++ b/source4/torture/com/simple.c @@ -38,7 +38,7 @@ static BOOL test_readwrite(TALLOC_CTX *mem_ctx, const char *host) struct IUnknown *interfaces[3]; WERROR results[2]; struct com_context *ctx; - char test_data[5]; + uint8_t test_data[5]; int i; com_init(); @@ -53,7 +53,7 @@ static BOOL test_readwrite(TALLOC_CTX *mem_ctx, const char *host) if (host) { error = dcom_create_object(ctx, &clsid, host, 2, IID, - &interfaces, + (struct IUnknown ***)&interfaces, results); } else { error = com_create_object(ctx, &clsid, 2, IID, interfaces, results); @@ -74,7 +74,7 @@ static BOOL test_readwrite(TALLOC_CTX *mem_ctx, const char *host) test_data[i] = i+1; } - error = IStream_Write((struct IStream *)interfaces[0], mem_ctx, &test_data, 5, NULL); + error = IStream_Write((struct IStream *)interfaces[0], mem_ctx, test_data, 5, NULL); if (!W_ERROR_IS_OK(error)) { printf("IStream::Write() failed - %s\n", win_errstr(error)); ret = False; -- cgit